Skip to content

Instantly share code, notes, and snippets.

@gerryster
Last active July 8, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gerryster/18b67d6209c72a9739c0 to your computer and use it in GitHub Desktop.
Save gerryster/18b67d6209c72a9739c0 to your computer and use it in GitHub Desktop.
firebase.json with support for HTML5 routing and cache busting (as long as the compiled html file also supports cache busting).
{
"firebase": "my-awesome-app",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ],
"headers": [ {
"source" : "**/*.html",
"headers" : [ {
"key" : "Cache-Control",
"value" : "private, max-age=0, no-cache"
} ]
} ]
}
@gerryster
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment