From 8bb909367cb2b1d00b28c972445a639763cae1dd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 17 Jan 2024 19:13:46 +0200 Subject: [PATCH] max age --- src/server/endpoints/pages/Home.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/endpoints/pages/Home.ts b/src/server/endpoints/pages/Home.ts index 784f265..96edd69 100644 --- a/src/server/endpoints/pages/Home.ts +++ b/src/server/endpoints/pages/Home.ts @@ -41,7 +41,7 @@ class Home extends Endpoint // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - server.app.use(`/${file}`, [ this.#checkAuth.bind(this), express.static(p) ]); + server.app.use(`/${file}`, [ this.#checkAuth.bind(this), express.static(p, { maxAge: DAY }) ]); } } }