feat(server): dont client cache HTML files

Tell the clients to not cache the HTML response.

closes #6393
This commit is contained in:
kontrollanten 2024-05-12 07:58:26 +02:00 committed by Chocobozzz
parent 46b45dc51d
commit 2177995056

View File

@ -54,6 +54,7 @@ class ClientHtml {
function sendHTML (html: string, res: express.Response, localizedHTML: boolean = false) {
res.set('Content-Type', 'text/html; charset=UTF-8')
res.set('Cache-Control', 'max-age=0, no-cache, must-revalidate')
if (localizedHTML) {
res.set('Vary', 'Accept-Language')