mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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')) {
|
if (!config.getEnv('endpoints.disableUi')) {
|
||||||
this.app.use(
|
this.app.use(
|
||||||
'/',
|
'/',
|
||||||
express.static(GENERATED_STATIC_DIR, staticOptions),
|
express.static(GENERATED_STATIC_DIR),
|
||||||
express.static(EDITOR_UI_DIST_DIR, staticOptions),
|
express.static(EDITOR_UI_DIST_DIR, staticOptions),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1440,7 +1440,7 @@ class Server extends AbstractServer {
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.app.use('/', express.static(GENERATED_STATIC_DIR, staticOptions));
|
this.app.use('/', express.static(GENERATED_STATIC_DIR));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue