MDL-58119 files: Use immutable Cache-Control extension.
This commit is contained in:
committed by
Matteo Scaramuccia
parent
bcaee8da27
commit
2168357af1
+1
-1
@@ -125,7 +125,7 @@ header('Content-Disposition: inline; filename="'.$filename.'"');
|
||||
header('Last-Modified: '. gmdate('D, d M Y H:i:s', filemtime($file)) .' GMT');
|
||||
header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
|
||||
header('Pragma: ');
|
||||
header('Cache-Control: public, max-age='.$lifetime);
|
||||
header('Cache-Control: public, max-age='.$lifetime.', immutable');
|
||||
header('Accept-Ranges: none');
|
||||
header('Content-Type: '.$mimetype);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user