Skip to content

Commit

Permalink
feat: Add vercel.json to set cache
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jan 7, 2025
1 parent f4b45c4 commit 1e6cfb6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"headers": [
{
"source": "/api/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=10"
},
{
"key": "CDN-Cache-Control",
"value": "s-maxage=60"
},
{
"key": "Vercel-CDN-Cache-Control",
"value": "s-maxage=60"
}
]
}
]
}

0 comments on commit 1e6cfb6

Please sign in to comment.