Last active
July 8, 2018 17:54
-
-
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"firebase": "my-awesome-app", | |
"rewrites": [ { | |
"source": "**", | |
"destination": "/index.html" | |
} ], | |
"headers": [ { | |
"source" : "**/*.html", | |
"headers" : [ { | |
"key" : "Cache-Control", | |
"value" : "private, max-age=0, no-cache" | |
} ] | |
} ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docs: https://www.firebase.com/docs/hosting/guide/full-config.html