fix 304 being returned all the time

master
Andrew Dolgov 12 years ago
parent 2e35a7070b
commit d6ba77f3ad

@ -32,7 +32,7 @@ class Handler_Public extends Handler {
$ts = strtotime(db_fetch_result($result, 0, "date_entered")); $ts = strtotime(db_fetch_result($result, 0, "date_entered"));
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&
strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $last_modified) { strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $ts) {
header('HTTP/1.0 304 Not Modified'); header('HTTP/1.0 304 Not Modified');
return; return;
} }

Loading…
Cancel
Save