From 21779950567216937b5dbd7cae653bf8f3fa4656 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Sun, 12 May 2024 07:58:26 +0200 Subject: [PATCH] feat(server): dont client cache HTML files Tell the clients to not cache the HTML response. closes #6393 --- server/core/lib/html/client-html.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/lib/html/client-html.ts b/server/core/lib/html/client-html.ts index d6650ce5a..c5e765ec8 100644 --- a/server/core/lib/html/client-html.ts +++ b/server/core/lib/html/client-html.ts @@ -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')