]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better logic for if-modified-since
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 04:21:59 +0000 (23:21 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 04:21:59 +0000 (23:21 -0500)
darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz

lib/action.php

index 1cb41389a26a5e2bdba35b0e6f3991d96319b698..5e16c98a7e1ce90008c436ec889fa2a54c518d87 100644 (file)
@@ -69,12 +69,9 @@ class Action { // lawsuit
                        if ($if_modified_since) {
                                $ims = strtotime($if_modified_since);
                                if ($lm <= $ims) {
-                                       $if_none_match = $_SERVER['HTTP_IF_NONE_MATCH'];
-                                       if ($if_none_match) {
-                                               header('304 Not Modified');
-                                               # Better way to do this?
-                                               exit(0);
-                                       }
+                                       header('304 Not Modified');
+                                       # Better way to do this?
+                                       exit(0);
                                }
                        }
                }