Cache 302s for 4 hours

This commit is contained in:
Michael Jackson 2019-01-17 18:36:46 -08:00
parent 949c40f11e
commit 276013696e
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ function tagRedirect(req, res) {
res
.set({
'Cache-Control': 'public, s-maxage=60, max-age=3600', // 1 minute at the CDN, 1 hour on clients
'Cache-Control': 'public, max-age=14400', // 4 hours
'Cache-Tag': 'redirect, tag-redirect'
})
.redirect(
@ -28,7 +28,7 @@ function semverRedirect(req, res) {
if (maxVersion) {
res
.set({
'Cache-Control': 'public, s-maxage=60, max-age=3600', // 1 minute at the CDN, 1 hour on clients
'Cache-Control': 'public, max-age=14400', // 4 hours
'Cache-Tag': 'redirect, semver-redirect'
})
.redirect(