better logic for if-modified-since

darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz
This commit is contained in:
Evan Prodromou 2008-12-01 23:21:59 -05:00
parent cb3862b43e
commit fd7bc1f565

View File

@ -69,8 +69,6 @@ class Action { // lawsuit
if ($if_modified_since) { if ($if_modified_since) {
$ims = strtotime($if_modified_since); $ims = strtotime($if_modified_since);
if ($lm <= $ims) { if ($lm <= $ims) {
$if_none_match = $_SERVER['HTTP_IF_NONE_MATCH'];
if ($if_none_match) {
header('304 Not Modified'); header('304 Not Modified');
# Better way to do this? # Better way to do this?
exit(0); exit(0);
@ -78,7 +76,6 @@ class Action { // lawsuit
} }
} }
} }
}
function boolean($key, $def=false) { function boolean($key, $def=false) {
$arg = strtolower($this->trimmed($key)); $arg = strtolower($this->trimmed($key));