FIX: firebase cache
Better caching policies
This commit is contained in:
parent
386211b24b
commit
d4b1a06bd0
1 changed files with 2 additions and 14 deletions
|
@ -1,22 +1,10 @@
|
|||
{
|
||||
"hosting": {
|
||||
"headers": [{
|
||||
"source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
|
||||
"headers" : [ {
|
||||
"key" : "Access-Control-Allow-Origin",
|
||||
"value" : "*"
|
||||
} ]
|
||||
}, {
|
||||
"source" : "**/*.@(js|css)",
|
||||
"source" : "**/*.@(js|css|jpg|jpeg|gif|png|svg|webp|woff2)",
|
||||
"headers" : [ {
|
||||
"key" : "Cache-Control",
|
||||
"value" : "max-age=604800"
|
||||
} ]
|
||||
}, {
|
||||
"source" : "**/*.@(jpg|jpeg|gif|png|svg)",
|
||||
"headers" : [ {
|
||||
"key" : "Cache-Control",
|
||||
"value" : "max-age=604800"
|
||||
"value" : "max-age=31536000"
|
||||
} ]
|
||||
}],
|
||||
"public": ".output/public",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue