Use "immutable" Cache-Control extension
See http://bitsup.blogspot.com/2016/05/cache-control-immutable.html for more info. Fixes #103 Closes #119
This commit is contained in:
@ -12,8 +12,8 @@ function indexRedirect(req, res, entry) {
|
||||
// resolve correctly.
|
||||
res
|
||||
.set({
|
||||
"Cache-Control": "public,max-age=31536000", // 1 year
|
||||
"Cache-Tag": "redirect,index-redirect"
|
||||
"Cache-Control": "public, max-age=31536000, immutable", // 1 year
|
||||
"Cache-Tag": "redirect, index-redirect"
|
||||
})
|
||||
.redirect(
|
||||
302,
|
||||
|
Reference in New Issue
Block a user