Force clients to ask us if their cached CSS is valid

This commit is contained in:
Johannes Meyer 2021-06-16 14:58:44 +02:00
parent 1ada53539c
commit 870c3e0e5b
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class StyleSheet
$request = $styleSheet->app->getRequest(); $request = $styleSheet->app->getRequest();
$response = $styleSheet->app->getResponse(); $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'; $noCache = $request->getHeader('Cache-Control') === 'no-cache' || $request->getHeader('Pragma') === 'no-cache';