From fd7bc1f5653b59d9cb3116ea428b38074a5862bf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 1 Dec 2008 23:21:59 -0500 Subject: [PATCH] better logic for if-modified-since darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz --- lib/action.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); } } } -- 2.39.5