fix 304 being returned all the time
This commit is contained in:
parent
2e35a7070b
commit
d6ba77f3ad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue