summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-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();