]> git.wh0rd.org - tt-rss.git/commitdiff
fix 304 being returned all the time
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 17:13:13 +0000 (21:13 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 1 Apr 2013 17:13:13 +0000 (21:13 +0400)
classes/handler/public.php

index 151447540a59f3de56edce0a853893741d870c70..f6a5786a573143bc7fa1a4e47a6f2e399077bb9d 100644 (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;
                        }