dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b46963
)
Live fix: cache header tweak
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 2 Apr 2006 03:55:24 +0000
(
03:55
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 2 Apr 2006 03:55:24 +0000
(
03:55
+0000)
includes/AjaxFunctions.php
patch
|
blob
|
history
diff --git
a/includes/AjaxFunctions.php
b/includes/AjaxFunctions.php
index
5d95820
..
7ed6bdc
100644
(file)
--- a/
includes/AjaxFunctions.php
+++ b/
includes/AjaxFunctions.php
@@
-90,7
+90,7
@@
class AjaxCachePolicy {
header ("Pragma: no-cache"); // HTTP/1.0
} else {
header ("Expires: " . gmdate( "D, d M Y H:i:s", time() + $this->policy ) . " GMT");
- header ("Cache-Control: public,max-age={$this->policy}");
+ header ("Cache-Control:
s-max-age={$this->policy},
public,max-age={$this->policy}");
}
}
}