FIX: firebase cache

Better caching policies
This commit is contained in:
webfussel 2025-02-02 00:52:18 +01:00
parent 386211b24b
commit d4b1a06bd0

View file

@ -1,22 +1,10 @@
{ {
"hosting": { "hosting": {
"headers": [{ "headers": [{
"source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)", "source" : "**/*.@(js|css|jpg|jpeg|gif|png|svg|webp|woff2)",
"headers" : [ {
"key" : "Access-Control-Allow-Origin",
"value" : "*"
} ]
}, {
"source" : "**/*.@(js|css)",
"headers" : [ { "headers" : [ {
"key" : "Cache-Control", "key" : "Cache-Control",
"value" : "max-age=604800" "value" : "max-age=31536000"
} ]
}, {
"source" : "**/*.@(jpg|jpeg|gif|png|svg)",
"headers" : [ {
"key" : "Cache-Control",
"value" : "max-age=604800"
} ] } ]
}], }],
"public": ".output/public", "public": ".output/public",