mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(core): Use custom cache control only on editor-ui assets (no-changelog) (#5346)
This commit is contained in:
parent
616074158c
commit
56326cb317
|
@ -1430,7 +1430,7 @@ class Server extends AbstractServer {
|
|||
if (!config.getEnv('endpoints.disableUi')) {
|
||||
this.app.use(
|
||||
'/',
|
||||
express.static(GENERATED_STATIC_DIR, staticOptions),
|
||||
express.static(GENERATED_STATIC_DIR),
|
||||
express.static(EDITOR_UI_DIST_DIR, staticOptions),
|
||||
);
|
||||
|
||||
|
@ -1440,7 +1440,7 @@ class Server extends AbstractServer {
|
|||
next();
|
||||
});
|
||||
} else {
|
||||
this.app.use('/', express.static(GENERATED_STATIC_DIR, staticOptions));
|
||||
this.app.use('/', express.static(GENERATED_STATIC_DIR));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue