Skip to content

Commit

Permalink
Don't cache service worker ref facebook/create-react-app#2440
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersos committed Nov 18, 2017
1 parent 5442555 commit 2c1f037
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
{
"source": "**/*.@(css|html|js|map)",
"headers": [{ "key": "Cache-Control", "value": "max-age=3600" }]
},
{
"source": "/service-worker.js",
"headers": [{ "key": "Cache-Control", "value": "no-cache" }]
}
],
"rewrites": [{ "source": "**", "destination": "/index.html" }]
Expand Down

0 comments on commit 2c1f037

Please sign in to comment.