1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 23:55:50 -04:00

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
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.vscode/ .vscode/
.npm .npm
.firebase
node_modules node_modules
lib lib
firebase-debug.log firebase-debug.log

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"
@@ -60,39 +55,57 @@
] ]
}, },
{ {
"source" : "**/*.@(jpg|jpeg|gif|png|ico)", "source": "**/*.@(jpg|jpeg|gif|png|ico)",
"headers" : [{ "headers": [
"key" : "Cache-Control", {
"value" : "max-age=604800" "key": "Cache-Control",
}] "value": "max-age=604800"
}
]
}, },
{ {
"source" : "**/*.@(css|js)", "source": "**/*.@(css|js)",
"headers" : [{ "headers": [
"key" : "Cache-Control", {
"value" : "max-age=86400" "key": "Cache-Control",
}] "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" "key": "Cache-Control",
}] "value": "max-age=2628000"
}
]
}, },
{ {
"source" : "**/*.asc", "source": "jarvis.asc",
"headers" : [{ "headers": [
"key" : "Content-Type", {
"value" : "text/plain" "key": "Cache-Control",
}] "value": "max-age=2628000"
},
{
"key": "Content-Type",
"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", {
"value" : "max-age=3600" "key": "Cache-Control",
}] "value": "max-age=3600"
}
]
} }
] ]
} }