better logic for if-modified-since
darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz
This commit is contained in:
parent
cb3862b43e
commit
fd7bc1f565
@ -69,8 +69,6 @@ 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);
|
||||
@ -78,7 +76,6 @@ class Action { // lawsuit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function boolean($key, $def=false) {
|
||||
$arg = strtolower($this->trimmed($key));
|
||||
|
Loading…
Reference in New Issue
Block a user