mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Force clients to ask us if their cached CSS is valid
This commit is contained in:
parent
1ada53539c
commit
870c3e0e5b
@ -192,7 +192,7 @@ class StyleSheet
|
||||
|
||||
$request = $styleSheet->app->getRequest();
|
||||
$response = $styleSheet->app->getResponse();
|
||||
$response->setHeader('Cache-Control', 'public', true);
|
||||
$response->setHeader('Cache-Control', 'private,no-cache,must-revalidate', true);
|
||||
|
||||
$noCache = $request->getHeader('Cache-Control') === 'no-cache' || $request->getHeader('Pragma') === 'no-cache';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user