0
我似乎無法使任何文件的max-age正常工作。我想增加緩存的到期時間,並且我一直試圖增加僅用於測試目的的圖像時間。仍然,鉻和火狐狀態的圖像的最大年齡爲3600這個json文件如何使用Firebase工具增加緩存到期日期?
我似乎無法使任何文件的max-age正常工作。我想增加緩存的到期時間,並且我一直試圖增加僅用於測試目的的圖像時間。仍然,鉻和火狐狀態的圖像的最大年齡爲3600這個json文件如何使用Firebase工具增加緩存到期日期?
標題的source
不匹配該文件夾中的圖像的輸入路徑 - 它需要以/
開頭:
{
"firebase": "sistema-de-oficios",
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [{
"source": "/css/images/*[email protected](jpg|jpeg|gif|png)",
"headers": [{
"key": "Cache-Control",
"value": "max-age=7200"
}]
}]
}
此外,還要確保你在最新版本的firebase-tools
這是目前1.1.4
在寫作的時候。
非常感謝。正是這個斜線,我已經有了1.1.4版本。 – 2014-11-27 06:10:17