MDL-58119 files: Use immutable Cache-Control extension.

This commit is contained in:
Matteo Scaramuccia
2017-07-15 00:18:48 +02:00
committed by Matteo Scaramuccia
parent bcaee8da27
commit 2168357af1
10 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ if ($allowcache) {
// Set it to expire a year later. Note that this means we should never get
// If-Modified-Since requests so there is no need to handle them specially.
header('Expires: ' . date('r', time() + 365 * 24 * 3600));
header('Cache-Control: max-age=' . 365 * 24 * 3600);
header('Cache-Control: max-age=' . 365 * 24 * 3600 . ', immutable');
// Pragma is set to no-cache by default so must be overridden.
header('Pragma:');
}