http header tweaks

This commit is contained in:
2018-11-20 14:54:03 -05:00
parent 97cd4782d9
commit 16ed2b69e2
2 changed files with 45 additions and 31 deletions
+1
View File
@@ -1,5 +1,6 @@
.vscode/ .vscode/
.npm .npm
.firebase
node_modules node_modules
lib lib
firebase-debug.log firebase-debug.log
+30 -17
View File
@@ -23,12 +23,7 @@
{ {
"key": "Expect-CT", "key": "Expect-CT",
"value": "max-age=0, report-uri=https://jakejarvis.report-uri.com/r/d/ct/reportOnly" "value": "max-age=0, report-uri=https://jakejarvis.report-uri.com/r/d/ct/reportOnly"
}
]
}, },
{
"source" : "**",
"headers": [
{ {
"key": "Cache-Control", "key": "Cache-Control",
"value": "max-age=3600" "value": "max-age=3600"
@@ -61,38 +56,56 @@
}, },
{ {
"source": "**/*.@(jpg|jpeg|gif|png|ico)", "source": "**/*.@(jpg|jpeg|gif|png|ico)",
"headers" : [{ "headers": [
{
"key": "Cache-Control", "key": "Cache-Control",
"value": "max-age=604800" "value": "max-age=604800"
}] }
]
}, },
{ {
"source": "**/*.@(css|js)", "source": "**/*.@(css|js)",
"headers" : [{ "headers": [
{
"key": "Cache-Control", "key": "Cache-Control",
"value": "max-age=86400" "value": "max-age=86400"
}] }
]
}, },
{ {
"source": "**/*.@(ttf|otf|woff|woff2|svg|eot)", "source": "**/*.@(ttf|otf|woff|woff2|svg|eot)",
"headers" : [{ "headers": [
{
"key": "Cache-Control",
"value": "max-age=2628000"
}
]
},
{
"source": "jarvis.asc",
"headers": [
{
"key": "Cache-Control", "key": "Cache-Control",
"value": "max-age=2628000" "value": "max-age=2628000"
}]
}, },
{ {
"source" : "**/*.asc",
"headers" : [{
"key": "Content-Type", "key": "Content-Type",
"value" : "text/plain" "value": "text/plain; charset=utf-8"
}] },
{
"key": "Content-Disposition",
"value": "inline; filename=\"jarvis.asc\""
}
]
}, },
{ {
"source": "404.html", "source": "404.html",
"headers" : [{ "headers": [
{
"key": "Cache-Control", "key": "Cache-Control",
"value": "max-age=3600" "value": "max-age=3600"
}] }
]
} }
] ]
} }