Skip to content

Commit

Permalink
Page. 优化缓存策略
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Feb 22, 2024
1 parent a539dd2 commit 8e50591
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"github": {
"silent": true
},
"cleanUrls": true,
"trailingSlash": true,
"headers": [
{
"source": "/(.*).(ttf|woff|woff2)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"source": "/assets/images/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}

0 comments on commit 8e50591

Please sign in to comment.