projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35b30b6
)
Don't cache embed HTML file
author
Chocobozzz
<me@florianbigard.com>
Tue, 2 Jun 2020 15:15:24 +0000
(17:15 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 2 Jun 2020 15:15:24 +0000
(17:15 +0200)
server/controllers/client.ts
patch
|
blob
|
history
diff --git
a/server/controllers/client.ts
b/server/controllers/client.ts
index 08c0f1fa61b40958a01538086104abf30cfcdbed..65b5a053c9f4004eabe78687feb80c82e79bb412 100644
(file)
--- 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(