mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(core): Remove index.html caching entirely (#13563)
This commit is contained in:
@@ -395,9 +395,9 @@ export class Server extends AbstractServer {
|
|||||||
!req.path.endsWith('.wasm') &&
|
!req.path.endsWith('.wasm') &&
|
||||||
!nonUIRoutesRegex.test(req.path)
|
!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, () => {
|
securityHeadersMiddleware(req, res, () => {
|
||||||
res.sendFile('index.html', { root: staticCacheDir, maxAge, lastModified: true });
|
res.sendFile('index.html', { root: staticCacheDir, maxAge: 0, lastModified: false });
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
|
|||||||
Reference in New Issue
Block a user