summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-01 23:21:59 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-01 23:21:59 -0500
commitfd7bc1f5653b59d9cb3116ea428b38074a5862bf (patch)
tree66637eab1a7574b9fd65af94d8f0af1f40775224
parentcb3862b43e8efa4dcb2be7c2c6ca345bdf4a1d64 (diff)
better logic for if-modified-since
darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz
-rw-r--r--lib/action.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/action.php b/lib/action.php
index 1cb41389a..5e16c98a7 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);
}
}
}