Fix cache-control

This commit is contained in:
lowlighter
2021-02-18 21:49:07 +01:00
parent f323629361
commit bd8b980042
2 changed files with 6 additions and 4 deletions

View File

@@ -69,7 +69,7 @@
}
//Cache headers middleware
middlewares.push((req, res, next) => {
res.header("Cache-Control", cached ? `public, max-age=${cached}` : "no-store, no-cache")
res.header("Cache-Control", cached ? `public, max-age=${Math.round(cached/1000)}` : "no-store, no-cache")
next()
})