我正在尝试Last-Modified
为我的资源设置标头,以便可以正确缓存它们。但是,当我运行时,出现firebase deploy
以下错误:
FIREBASE WARNING: set at /hosting/headers/dstaley failed: permission_denied
Settings Error - Incorrectly formatted "headers" entry in the firebase.json
我的 firebase.json 如下:
{
"firebase": "dstaley",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
},
{
"source": "**/*.@(js|css|html)",
"headers": [
{
"key": "Last-Modified",
"value": "Thu, 28 Aug 2014 16:25:05 GMT"
}
]
}
]
}
该文件看起来格式正确,并且该permission_denied
错误使我相信无法Last-Modified
使用 Firebase 托管设置标头。有任何想法吗?