Change for Chrome caching issue #188

This commit is contained in:
the-djmaze 2023-02-09 23:15:24 +01:00
parent 9d02be6a20
commit f05ff65b30
3 changed files with 3 additions and 3 deletions

View file

@ -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');
}
}

View file

@ -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.

View file

@ -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";