Merge branch 'm27_MDL-40379_Prevent_Some_Mobile_Network_Providers_From_Modifying_Content' of https://github.com/scara/moodle
This commit is contained in:
+2
-2
@@ -2053,13 +2053,13 @@ function send_headers($contenttype, $cacheable = true) {
|
||||
|
||||
if ($cacheable) {
|
||||
// Allow caching on "back" (but not on normal clicks).
|
||||
@header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
||||
@header('Cache-Control: private, pre-check=0, post-check=0, max-age=0, no-transform');
|
||||
@header('Pragma: no-cache');
|
||||
@header('Expires: ');
|
||||
} else {
|
||||
// Do everything we can to always prevent clients and proxies caching.
|
||||
@header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
@header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
@header('Cache-Control: post-check=0, pre-check=0, no-transform', false);
|
||||
@header('Pragma: no-cache');
|
||||
@header('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
|
||||
@header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
Reference in New Issue
Block a user