mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Remove index.html
caching entirely (#13563)
This commit is contained in:
parent
ec57ac4ea2
commit
afba8f9ff8
|
@ -395,9 +395,9 @@ export class Server extends AbstractServer {
|
|||
!req.path.endsWith('.wasm') &&
|
||||
!nonUIRoutesRegex.test(req.path)
|
||||
) {
|
||||
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
|
||||
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate, proxy-revalidate');
|
||||
securityHeadersMiddleware(req, res, () => {
|
||||
res.sendFile('index.html', { root: staticCacheDir, maxAge, lastModified: true });
|
||||
res.sendFile('index.html', { root: staticCacheDir, maxAge: 0, lastModified: false });
|
||||
});
|
||||
} else {
|
||||
next();
|
||||
|
|
Loading…
Reference in a new issue