1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:25:56 +00:00

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

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;
}