From: Evan Prodromou Date: Tue, 2 Dec 2008 04:21:59 +0000 (-0500) Subject: better logic for if-modified-since X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd7bc1f5653b59d9cb3116ea428b38074a5862bf;p=quix0rs-gnu-social.git better logic for if-modified-since darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz --- diff --git a/lib/action.php b/lib/action.php index 1cb41389a2..5e16c98a7e 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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); } } }