From af8127aed45c5106580fa470aa275231c670acff Mon Sep 17 00:00:00 2001 From: Blake Williams Date: Tue, 13 Feb 2018 11:39:58 -0500 Subject: [PATCH] Don't cache service worker file https://github.com/facebook/create-react-app/issues/2440 This should resolve an issue where `index.html` is cached and pointing at an invalid JavaScript bundle. --- public/_headers | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 public/_headers diff --git a/public/_headers b/public/_headers new file mode 100644 index 0000000..2215208 --- /dev/null +++ b/public/_headers @@ -0,0 +1,3 @@ +/service-worker.js + Cache-Control: no-cache + Max-Age: 0