resourceloader: Add must-revalidate to Cache-Control
authorRoan Kattouw <roan.kattouw@gmail.com>
Tue, 28 Jul 2015 02:27:39 +0000 (19:27 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 28 Jul 2015 02:37:31 +0000 (02:37 +0000)
Bug: T105255
Change-Id: Ifdd32560335dee3bdd3a2844c8169e5b963b18c5

includes/resourceloader/ResourceLoader.php

index 508be2f..bf34c22 100644 (file)
@@ -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() ) );
                }