summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-08 00:14:35 +0100
committerTor Andersson <tor@ccxvii.net>2022-02-15 12:18:30 +0100
commit683737dcc4c818ce900a250f1c77993d0f48c7b1 (patch)
treedeb875d2ee839fe7144ccb7ed294ff2ba594f4f2
parent4bedfa9d5dfc5007a9d4c93654ed0b6e109c67d5 (diff)
downloadserver-683737dcc4c818ce900a250f1c77993d0f48c7b1.tar.gz
Tweak cache control.
-rw-r--r--server.js4
1 files changed, 2 insertions, 2 deletions
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();