From aca452999108432ce80406d453006577e6151c3f Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 16 Mar 2018 18:07:18 -0700 Subject: [PATCH] Add note about cloudflare caching --- config/webpack.prod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/webpack.prod.js b/config/webpack.prod.js index c4af34fd..81da43c3 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -19,6 +19,9 @@ const config = merge(common, { sourceMap: true }), new workboxPlugin.GenerateSW({ + // Note: CloudFlare is configued to not cache this file, as suggested in the: + // "Avoid changing the URL of your service worker script" sectio of: + // https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle swDest: "service-worker.js", clientsClaim: true, skipWaiting: true