fix review comment

Signed-off-by: David Festal <dfestal@redhat.com>
This commit is contained in:
David Festal
2024-01-17 15:58:54 +01:00
parent 9dfd57d778
commit 2c27289bd1
@@ -135,9 +135,6 @@ export async function createRouter(
express.static(resolvePath(appDistDir, 'static'), {
setHeaders: (res, path) => {
if (path === injectedConfigPath) {
logger.info(
`Serving in the injected Javascript file with max caching disabled`,
);
res.setHeader('Cache-Control', 'no-cache');
} else {
res.setHeader('Cache-Control', CACHE_CONTROL_MAX_CACHE);