forked from GNUsocial/gnu-social
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) {
|
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'];
|
header('304 Not Modified');
|
||||||
if ($if_none_match) {
|
# Better way to do this?
|
||||||
header('304 Not Modified');
|
exit(0);
|
||||||
# Better way to do this?
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user