Please answer this simple SPAM challenge: max(eight, five)?
(Example: nine)

The Note You're Voting On

10 years ago
You can use HTTP's etags and last modified dates to ensure that you're not sending the browser data it already has cached.

= filemtime($file);
$etag = md5_file($file);

header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT");
header("Etag: $etag");

if (@
strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time ||
trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
header("HTTP/1.1 304 Not Modified");

<< Back to user notes page

To Top