change cache control header (stale-while-revalidate)

This commit is contained in:
spencerwooo
2022-02-12 19:37:00 +08:00
parent 8d57826e00
commit a8ea73c564
5 changed files with 8 additions and 4 deletions
+4
View File
@@ -28,4 +28,8 @@ module.exports = {
// The directLinkRegex is used to match the direct link of the file from the response of the API. We originally use this to prevent
// unauthorised use of the proxied download feature - but that is disabled for now. So you can safely ignore this settings.
directLinkRegex: 'public[.].*[.]files[.]1drv[.]com',
// Cache-Control header, check Vercel documentation for more details.
// https://vercel.com/docs/concepts/edge-network/caching
cacheControlHeader: 'max-age=0, s-maxage=1, stale-while-revalidate=59'
}