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"
}
]
}
]
}
ファイルは適切にフォーマットされているように見えますが、このエラーにより、Firebase ホスティングでヘッダーpermission_denied
を設定することはできないと思われます。Last-Modified
何か案は?