Skip to content

Instantly share code, notes, and snippets.

@zwacky
Created June 12, 2017 21:48
Show Gist options
  • Save zwacky/41f33750e57ec1b37add10c50b2c5c2d to your computer and use it in GitHub Desktop.
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
{
"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