1
0
Fork 0

Don't cache embed HTML file

This commit is contained in:
Chocobozzz 2020-06-02 17:15:24 +02:00
parent 35b30b643c
commit 78646451c9
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -29,7 +29,8 @@ clientsRouter.use(
embedCSPMiddleware,
(req: express.Request, res: express.Response) => {
res.removeHeader('X-Frame-Options')
res.sendFile(embedPath)
// Don't cache HTML file since it's an index to the immutable JS/CSS files
res.sendFile(embedPath, { maxAge: 0 })
}
)
clientsRouter.use(