feat(server): dont client cache HTML files
Tell the clients to not cache the HTML response. closes #6393
This commit is contained in:
parent
46b45dc51d
commit
2177995056
|
@ -54,6 +54,7 @@ class ClientHtml {
|
||||||
|
|
||||||
function sendHTML (html: string, res: express.Response, localizedHTML: boolean = false) {
|
function sendHTML (html: string, res: express.Response, localizedHTML: boolean = false) {
|
||||||
res.set('Content-Type', 'text/html; charset=UTF-8')
|
res.set('Content-Type', 'text/html; charset=UTF-8')
|
||||||
|
res.set('Cache-Control', 'max-age=0, no-cache, must-revalidate')
|
||||||
|
|
||||||
if (localizedHTML) {
|
if (localizedHTML) {
|
||||||
res.set('Vary', 'Accept-Language')
|
res.set('Vary', 'Accept-Language')
|
||||||
|
|
Loading…
Reference in New Issue