Cache stats for 1 minute

This commit is contained in:
MICHAEL JACKSON 2017-08-22 09:45:41 -07:00
parent c74fc8b577
commit 37640b2c8b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function servePastDaysStats(days, req, res) {
res.status(500).send({ error: 'Unable to fetch stats' }) res.status(500).send({ error: 'Unable to fetch stats' })
} else { } else {
res.set({ res.set({
'Cache-Control': 'public, max-age=86400', 'Cache-Control': 'public, max-age=60',
'Cache-Tag': 'stats' 'Cache-Tag': 'stats'
}).send(stats) }).send(stats)
} }