Skip to content

Commit

Permalink
feat(server): dont client cache HTML files
Browse files Browse the repository at this point in the history
Tell the clients to not cache the HTML response.

closes Chocobozzz#6393
  • Loading branch information
kontrollanten committed May 12, 2024
1 parent 46b45dc commit db7a2f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/core/lib/html/client-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit db7a2f2

Please sign in to comment.