Force clients to ask us if their cached JS is valid

This commit is contained in:
Johannes Meyer 2021-06-16 14:57:14 +02:00
parent 439218869b
commit 1ada53539c
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class JavaScript
$request = Icinga::app()->getRequest();
$noCache = $request->getHeader('Cache-Control') === 'no-cache' || $request->getHeader('Pragma') === 'no-cache';
header('Cache-Control: public');
header('Cache-Control: public,no-cache,must-revalidate');
if (! $noCache && FileCache::etagMatchesFiles($files)) {
header("HTTP/1.1 304 Not Modified");