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:
0f7507d
)
resourceloader: Add must-revalidate to Cache-Control
author
Roan Kattouw
<roan.kattouw@gmail.com>
Tue, 28 Jul 2015 02:27:39 +0000
(19:27 -0700)
committer
Krinkle
<krinklemail@gmail.com>
Tue, 28 Jul 2015 02:37:31 +0000
(
02:37
+0000)
Bug: T105255
Change-Id: Ifdd32560335dee3bdd3a2844c8169e5b963b18c5
includes/resourceloader/ResourceLoader.php
patch
|
blob
|
history
diff --git
a/includes/resourceloader/ResourceLoader.php
b/includes/resourceloader/ResourceLoader.php
index
508be2f
..
bf34c22
100644
(file)
--- a/
includes/resourceloader/ResourceLoader.php
+++ b/
includes/resourceloader/ResourceLoader.php
@@
-810,7
+810,7
@@
class ResourceLoader implements LoggerAwareInterface {
header( 'Cache-Control: private, no-cache, must-revalidate' );
header( 'Pragma: no-cache' );
} else {
- header( "Cache-Control: public, max-age=$maxage, s-maxage=$smaxage" );
+ header( "Cache-Control: public, m
ust-revalidate, m
ax-age=$maxage, s-maxage=$smaxage" );
$exp = min( $maxage, $smaxage );
header( 'Expires: ' . wfTimestamp( TS_RFC2822, $exp + time() ) );
}