重构代码,优化组件加载和样式,移除不必要的依赖,增强首屏渲染性能

This commit is contained in:
Sunwuyuan
2026-03-03 21:16:32 +08:00
parent 97c70f6706
commit cf3412db6a
16 changed files with 424 additions and 302 deletions
+38 -2
View File
@@ -7,11 +7,47 @@
],
"headers": [
{
"source": "/:path*",
"source": "/assets/:path*",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/pwa/:path*",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800"
}
]
},
{
"source": "/index.html",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
},
{
"source": "/sw.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
},
{
"source": "/sw-cache-manager.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}