From 7b70244f63a48b0b97021be4bf6c0624e72b5f48 Mon Sep 17 00:00:00 2001 From: Andrey Platov <87076238+aplatoff@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:16:23 +0100 Subject: [PATCH] cache-control for files (#528) Signed-off-by: Andrey Platov --- server/front/src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/front/src/app.ts b/server/front/src/app.ts index 4ce1387955..8f4e3cad18 100644 --- a/server/front/src/app.ts +++ b/server/front/src/app.ts @@ -114,6 +114,7 @@ export function start (config: { transactorEndpoint: string, elasticUrl: string, return console.log(err) } res.status(200) + res.set('Cache-Control', 'max-age=604800') const contentType = stat.metaData['content-type'] if (contentType !== undefined) {