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

@ -49,7 +49,7 @@ 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);

View File

@ -48,7 +48,7 @@ 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);