Increase cache max-age for auto-index pages

This commit is contained in:
Michael Jackson
2019-01-12 20:53:25 -08:00
parent 8b65834320
commit 66b607843a

View File

@ -41,7 +41,7 @@ export default function serveAutoIndexPage(req, res) {
res res
.set({ .set({
'Cache-Control': 'public, max-age=600', // 10 minutes 'Cache-Control': 'public, max-age=14400', // 4 hours
'Cache-Tag': 'auto-index' 'Cache-Tag': 'auto-index'
}) })
.send(html); .send(html);