feat: web cache (#12403)

This commit is contained in:
MistEO
2025-04-19 13:08:56 +08:00
committed by GitHub
parent 4d76fabd77
commit a4420961ce
2 changed files with 9 additions and 1 deletions

View File

@@ -3,5 +3,13 @@
"404": {
"rewrite": "/docs/404.html"
}
},
"routes": [
{
"route": "/*.{jpg,gif,png,ico,svg,css,scss,js,webp,webmanifest}",
"headers": {
"cache-control": "public, max-age=604800, immutable"
}
}
]
}

View File

@@ -16,6 +16,6 @@ export default defineConfig({
port: 3000,
},
build: {
sourcemap: true,
sourcemap: false,
},
})