mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 19:11:29 +00:00
fix 304 being returned all the time
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user