fix(core): Use custom cache control only on editor-ui assets (no-changelog) (#5346)
This commit is contained in:
committed by
GitHub
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user