From: Roan Kattouw Date: Tue, 28 Jul 2015 02:27:39 +0000 (-0700) Subject: resourceloader: Add must-revalidate to Cache-Control X-Git-Tag: 1.31.0-rc.0~10363^2~1 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=1139fbe58c3ac2700b8d717b878e4d7b752b67d2;p=lhc%2Fweb%2Fwiklou.git resourceloader: Add must-revalidate to Cache-Control Bug: T105255 Change-Id: Ifdd32560335dee3bdd3a2844c8169e5b963b18c5 --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 508be2f4ea..bf34c221f4 100644 --- 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, must-revalidate, max-age=$maxage, s-maxage=$smaxage" ); $exp = min( $maxage, $smaxage ); header( 'Expires: ' . wfTimestamp( TS_RFC2822, $exp + time() ) ); }