summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/server.js b/server.js
index df31146..7a1713b 100644
--- a/server.js
+++ b/server.js
@@ -161,10 +161,8 @@ function login_delete(res, sid) {
* Web server setup.
*/
-express.static.mime.define({ "image/avif": ["avif"] })
-
function set_static_headers(res, path) {
- if (path.match(/\.(jpg|png|svg|avif|webp|ico|woff2)$/))
+ if (path.match(/\.(jpg|png|svg|webp|ico|woff2)$/))
res.setHeader("Cache-Control", "max-age=86400")
else
res.setHeader("Cache-Control", "max-age=60")