fix(core): Use custom cache control only on editor-ui assets (no-changelog) (#5346)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-02-03 11:27:24 +01:00 committed by GitHub
parent 616074158c
commit 56326cb317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}
}
}