Merge branch 'master' into firebase-hosting
This commit is contained in:
commit
ab97ff2cc4
|
@ -49,7 +49,7 @@ export default function serveAutoIndexPage(req, res) {
|
|||
|
||||
res
|
||||
.set({
|
||||
'Cache-Control': 'public,max-age=60', // 1 minute
|
||||
'Cache-Control': 'public, max-age=600', // 10 minutes
|
||||
'Cache-Tag': 'auto-index'
|
||||
})
|
||||
.send(html);
|
||||
|
|
|
@ -56,7 +56,7 @@ export default function showStats(req, res) {
|
|||
stats => {
|
||||
res
|
||||
.set({
|
||||
'Cache-Control': 'public, max-age=60',
|
||||
'Cache-Control': 'public, max-age=3600', // 1 hour
|
||||
'Cache-Tag': 'stats'
|
||||
})
|
||||
.send(stats);
|
||||
|
|
|
@ -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(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue