Cache stats for 1 minute
This commit is contained in:
parent
c74fc8b577
commit
37640b2c8b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue