Standalone raw file redirects (#428)

This commit is contained in:
Spencer Woo
2022-02-14 19:33:19 +08:00
committed by GitHub
parent 0fda1c93db
commit 9493ce9f3d
30 changed files with 365 additions and 185 deletions
+5 -2
View File
@@ -29,7 +29,10 @@ module.exports = {
// 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.
// Cache-Control header, check Vercel documentation for more details. The default settings imply:
// - max-age=0: no cache for your browser
// - s-maxage=0: cache is fresh for 60 seconds on the edge, after which it becomes stale
// - stale-while-revalidate: allow serving stale content while revalidating on the edge
// https://vercel.com/docs/concepts/edge-network/caching
cacheControlHeader: 'max-age=0, s-maxage=3540, stale-while-revalidate=60'
cacheControlHeader: 'max-age=0, s-maxage=60, stale-while-revalidate',
}