fix 304 being returned all the time

This commit is contained in:
Andrew Dolgov 2013-04-01 21:13:13 +04:00
parent 2e35a7070b
commit d6ba77f3ad
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Handler_Public extends Handler {
$ts = strtotime(db_fetch_result($result, 0, "date_entered"));
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');
return;
}