From d6ba77f3ad6183f0acce75790172fb22f2100367 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Apr 2013 21:13:13 +0400 Subject: [PATCH] fix 304 being returned all the time --- classes/handler/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5