【发布时间】:2016-06-30 05:39:33
【问题描述】:
firebase.json 中的 Cache-Control 标头似乎不起作用。所有文件的max-age 值都设置为31536000(1 年),但在加载页面时仍设置为浏览器默认值3600(1 小时)。
firebase.json 文件似乎遵守firebase documentation.
{
"hosting": {
"public": "public"
},
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [{
"source": "**",
"headers": [{
"key": "Cache-Control",
"value": "max-age=31536000"
}]
}]
}
【问题讨论】:
标签: json caching firebase cache-control firebase-hosting