Reducing image size; add Firebase hosting

This commit is contained in:
obergodmar
2020-07-10 23:11:56 +03:00
parent 839355f1de
commit 01fbc19cda
29 changed files with 44 additions and 9 deletions
+39
View File
@@ -0,0 +1,39 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "cache-control",
"value": "cache-control: public, max-age=0, must-revalidate"
}
]
},
{
"source": "static/**",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "**/*.@(css|js|ogg|mp3)",
"headers": [
{
"key": "cache-control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}
}