From 2c1f03748244f30e507aba777424e04fe26d1cb6 Mon Sep 17 00:00:00 2001 From: Anders Olsen Sandvik Date: Sat, 18 Nov 2017 02:27:15 +0100 Subject: [PATCH] Don't cache service worker ref https://github.com/facebookincubator/create-react-app/issues/2440 --- firebase.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firebase.json b/firebase.json index b7080a9..dc7f3dc 100644 --- a/firebase.json +++ b/firebase.json @@ -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" }]