aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/client.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-02 17:15:24 +0200
committerChocobozzz <me@florianbigard.com>2020-06-02 17:15:24 +0200
commit78646451c9896db3c2239270cd7e100305749f41 (patch)
tree28bc1da00408c7c5c1b4bf8b42c932dcdc4d0ff8 /server/controllers/client.ts
parent35b30b643cf9870b0934f34253ffb23cf6a264b0 (diff)
downloadPeerTube-78646451c9896db3c2239270cd7e100305749f41.tar.gz
PeerTube-78646451c9896db3c2239270cd7e100305749f41.tar.zst
PeerTube-78646451c9896db3c2239270cd7e100305749f41.zip
Don't cache embed HTML file
Diffstat (limited to 'server/controllers/client.ts')
-rw-r--r--server/controllers/client.ts3
1 files changed, 2 insertions, 1 deletions
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(
29 embedCSPMiddleware, 29 embedCSPMiddleware,
30 (req: express.Request, res: express.Response) => { 30 (req: express.Request, res: express.Response) => {
31 res.removeHeader('X-Frame-Options') 31 res.removeHeader('X-Frame-Options')
32 res.sendFile(embedPath) 32 // Don't cache HTML file since it's an index to the immutable JS/CSS files
33 res.sendFile(embedPath, { maxAge: 0 })
33 } 34 }
34) 35)
35clientsRouter.use( 36clientsRouter.use(