I am using a PHP script to serve files. I would like to be able to send back a 304 not modified header in my http response if the file has not changed since th
304
Note that $_SERVER["HTTP_IF_NONE_MATCH"] can contain quotes and -gzip suffix.
$server_etag = str_replace("-gzip", "", str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH']))); if ($server_etag == $etag) ...