From: Chocobozzz Date: Tue, 2 Jun 2020 15:15:24 +0000 (+0200) Subject: Don't cache embed HTML file X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78646451c9896db3c2239270cd7e100305749f41;p=oweals%2Fpeertube.git Don't cache embed HTML file --- diff --git a/server/controllers/client.ts b/server/controllers/client.ts index 08c0f1fa6..65b5a053c 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts @@ -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(