mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 05:32:01 +00:00
Standalone raw file redirects (#428)
This commit is contained in:
@@ -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',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user