Increase client cache to 60s

pull/287/head
Amio 2019-06-12 19:12:16 +08:00
rodzic 18ae78f6c8
commit 43d6406a76
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -27,7 +27,7 @@ export default function (req, res, options: ServeBadgeOptions) {
})
const staleControl = `stale-while-revalidate=604800, stale-if-error=604800`
const cacheControl = `public, max-age=30, s-maxage=${sMaxAge}, ${staleControl}`
const cacheControl = `public, max-age=60, s-maxage=${sMaxAge}, ${staleControl}`
res.setHeader('Cache-Control', cacheControl)
res.setHeader('Content-Type', 'image/svg+xml;charset=utf-8')
res.statusCode = code