From 683737dcc4c818ce900a250f1c77993d0f48c7b1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 8 Feb 2022 00:14:35 +0100 Subject: Tweak cache control. --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.js') diff --git a/server.js b/server.js index 52ae0c6..0766216 100644 --- a/server.js +++ b/server.js @@ -101,9 +101,9 @@ function login_delete(res, sid) { function set_static_headers(res, path) { if (path.match(/\.(jpg|png|svg|webp|ico|woff2)/)) - res.setHeader("Cache-Control", "Max-Age=86400"); + res.setHeader("Cache-Control", "max-age=86400"); else - res.setHeader("Cache-Control", "Max-Age=0"); + res.setHeader("Cache-Control", "no-cache"); } let app = express(); -- cgit v1.2.3