The Cache-Control
header in my firebase.json
does not seem to be working. The max-age
value for all files is set to 31536000
(1 year), but when loading the page it is still set to the browser default of 3600
(1 hour).
The firebase.json
file seems to abide by the firebase documentation.
{
"hosting": {
"public": "public"
},
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [{
"source": "**",
"headers": [{
"key": "Cache-Control",
"value": "max-age=31536000"
}]
}]
}