From: Andrew Dolgov Date: Mon, 1 Apr 2013 17:13:13 +0000 (+0400) Subject: fix 304 being returned all the time X-Git-Tag: 1.7.6~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d6ba77f3ad6183f0acce75790172fb22f2100367;p=tt-rss.git fix 304 being returned all the time --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 15144754..f6a5786a 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -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; }