From bded5a3237b0ce8bc676cfad51367c8aec2bc038 Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Tue, 9 Mar 2021 09:55:15 +0100 Subject: [PATCH] Update comments Signed-off-by: Dominik Henneke --- plugins/app-backend/src/service/router.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/app-backend/src/service/router.ts b/plugins/app-backend/src/service/router.ts index d140c73180..8fe8355bc3 100644 --- a/plugins/app-backend/src/service/router.ts +++ b/plugins/app-backend/src/service/router.ts @@ -102,8 +102,7 @@ export async function createRouter( express.static(appDistDir, { setHeaders: (res, path) => { // The Cache-Control header instructs the browser to not cache html files since it might - // link to static assets from recently deployed versions. This is a workaround when no - // staticFallbackHandler is configured. + // link to static assets from recently deployed versions. if ( ((express.static.mime as unknown) as Mime).lookup(path) === 'text/html' @@ -117,8 +116,7 @@ export async function createRouter( res.sendFile(resolvePath(appDistDir, 'index.html'), { headers: { // The Cache-Control header instructs the browser to not cache the index.html since it might - // link to static assets from recently deployed versions. This is a workaround when no - // staticFallbackHandler is configured. + // link to static assets from recently deployed versions. 'cache-control': 'no-store, max-age=0', }, });