mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
change cache control header (stale-while-revalidate)
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user