Merge branch 'vojta001/cache-control' into 'master'

Set Cache-Control headers for certain content on Firebase

See merge request patek-devs/patek.cz!43
This commit is contained in:
Vojtěch Káně 2020-10-07 20:13:45 +00:00
commit 9342033393

View File

@ -5,6 +5,35 @@
"firebase.json", "firebase.json",
"**/.*", "**/.*",
"**/node_modules/**" "**/node_modules/**"
],
"headers": [
{
"source": "@(js|css)/*.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=2628000"
}
]
},
{
"source": "img/**",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=86400"
}
]
},
{
"source": "!(img)/**/*.@(jpg|jpeg|png|webp)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=2628000"
}
]
}
] ]
} }
} }