1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-23 02:21:16 -04:00

firebase hosting config

This commit is contained in:
2018-02-23 17:55:07 -05:00
parent 0782000454
commit 0b56eda8e0
3 changed files with 73 additions and 0 deletions

57
firebase.json Normal file
View File

@@ -0,0 +1,57 @@
{
"hosting": {
"public": "public",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
}],
"headers": [
{
"source": "**/*",
"headers": [{
"key": "X-Content-Type-Options",
"value": "nosniff"
}]
},
{
"source" : "**/",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=180"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-UA-Compatible",
"value": "ie=edge"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
},
{
"source" : "**/*.@(jpg|jpeg|gif|png|ico)",
"headers" : [{
"key" : "Cache-Control",
"value" : "max-age=604800"
}]
},
{
"source" : "**/*.@(css|js)",
"headers" : [{
"key" : "Cache-Control",
"value" : "max-age=86400"
}]
}
]
}
}