better logic for if-modified-since
darcs-hash:20081202042159-5ed1f-16cbaa0253b6b60033bf842dff88b097a41ea328.gz
This commit is contained in:
parent
cb3862b43e
commit
fd7bc1f565
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user