Skip to content

Instantly share code, notes, and snippets.

@ziginsider
Created December 9, 2017 14:34
Show Gist options
  • Select an option

  • Save ziginsider/e0ab9fefe8be5f8ec06b9cdf95897795 to your computer and use it in GitHub Desktop.

Select an option

Save ziginsider/e0ab9fefe8be5f8ec06b9cdf95897795 to your computer and use it in GitHub Desktop.
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
},
{
"source": "/[Ss][Tt][Aa][Tt][Ii][Oo][Nn]",
"destination": "/Station"
}
],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=604800"
}
]
},
{
"source": "**/*.@(js)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=604800"
}
]
},
{
"source": "**/*.@(css)",
"headers": [
{
"key": "Content-Type",
"value": "text/css"
},
{
"key": "Cache-Control",
"value": "max-age=604800"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment