Created
June 12, 2017 21:48
-
-
Save zwacky/41f33750e57ec1b37add10c50b2c5c2d to your computer and use it in GitHub Desktop.
firebase configuration for ionic 3 PWA that excludes service-worker.js from caching competely
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
{ | |
"hosting": { | |
"public": "./platforms/browser/www/", | |
"rewrites": [ | |
{ | |
"source": "**", | |
"destination": "/index.html" | |
} | |
], | |
"headers": [ | |
{ | |
"source": "service-worker.js", | |
"headers": [ | |
{ | |
"key": "Cache-Control", | |
"value": "max-age=0" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment