mirror of https://github.com/Chocobozzz/PeerTube
feat(server): dont client cache HTML files
Tell the clients to not cache the HTML response. closes #6393pull/6402/head
parent
46b45dc51d
commit
2177995056
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue