diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-02-08 00:14:35 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-02-15 12:18:30 +0100 |
commit | 683737dcc4c818ce900a250f1c77993d0f48c7b1 (patch) | |
tree | deb875d2ee839fe7144ccb7ed294ff2ba594f4f2 | |
parent | 4bedfa9d5dfc5007a9d4c93654ed0b6e109c67d5 (diff) | |
download | server-683737dcc4c818ce900a250f1c77993d0f48c7b1.tar.gz |
Tweak cache control.
-rw-r--r-- | server.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |