chore(vercel): add vercel headers for assets (#885)

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-10-11 23:07:42 +08:00 committed by GitHub
parent 62adeb7481
commit bc779d4fb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 44 additions and 0 deletions

View File

@ -12,5 +12,49 @@
"source": "/(.*)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/vendor/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, immutable"
},
{
"key": "CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Vercel-CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Cloudflare-CDN-Cache-Control",
"value": "max-age=604800"
}
]
},
{
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, immutable"
},
{
"key": "CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Vercel-CDN-Cache-Control",
"value": "max-age=604800"
},
{
"key": "Cloudflare-CDN-Cache-Control",
"value": "max-age=604800"
}
]
}
]
}