mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Change for Chrome caching issue #188
This commit is contained in:
parent
9d02be6a20
commit
f05ff65b30
3 changed files with 3 additions and 3 deletions
|
|
@ -185,7 +185,7 @@ class Http
|
|||
static::$bCache = true;
|
||||
\header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
\header('Last-Modified: '.\gmdate('D, d M Y H:i:s').' GMT');
|
||||
\header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0');
|
||||
\header('Cache-Control: no-store');
|
||||
\header('Pragma: no-cache');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ abstract class Stream
|
|||
// We just fake Drupal https://www.drupal.org/docs/8/core/modules/big-pipe/bigpipe-environment-requirements
|
||||
\header('Surrogate-Control: no-store, content="BigPipe/1.0"');
|
||||
// Explicitly disable caching so Varnish and other upstreams won't cache.
|
||||
\header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
\header('Cache-Control: no-store');
|
||||
\header('Pragma: no-cache');
|
||||
|
||||
// Nginx: disable fastcgi_buffering and disable gzip for this request.
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class ZIP
|
|||
while ($i-- && \ob_end_clean());
|
||||
\ob_get_level() || \header('Content-Encoding: ');
|
||||
}
|
||||
\header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
\header('Cache-Control: no-store');
|
||||
\header('Pragma: no-cache');
|
||||
\header('Content-Transfer-Encoding: binary');
|
||||
$name = "{$name}.zip";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue