Fix placeholder cache control
This commit is contained in:
1 parent
c488ae154d
commit
90d088edf7
1 file changed
+2
-1
+2
-1
@@ -35,7 +35,8 @@
|
||||
}
|
||||
//Cache headers middleware
|
||||
middlewares.push((req, res, next) => {
|
||||
res.header("Cache-Control", cached ? `public, max-age=${cached}` : "no-store, no-cache")
|
||||
if (!["/placeholder"].includes(req.path))
|
||||
res.header("Cache-Control", cached ? `public, max-age=${cached}` : "no-store, no-cache")
|
||||
next()
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user