Increase some cache times

This commit is contained in:
Michael Jackson
2019-01-08 06:47:04 -08:00
parent 523ff7647f
commit 0622848255
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ function tagRedirect(req, res) {
res
.set({
'Cache-Control': 'public, max-age=300', // 5 minutes
'Cache-Control': 'public, max-age=600', // 10 minutes
'Cache-Tag': 'redirect, tag-redirect'
})
.redirect(
@ -29,7 +29,7 @@ function semverRedirect(req, res) {
if (maxVersion) {
res
.set({
'Cache-Control': 'public, max-age=300', // 5 minutes
'Cache-Control': 'public, max-age=600', // 10 minutes
'Cache-Tag': 'redirect, semver-redirect'
})
.redirect(