diff --git a/sw-precache-config.js b/sw-precache-config.js index 4cfb6d64..e44568f2 100644 --- a/sw-precache-config.js +++ b/sw-precache-config.js @@ -1,8 +1,8 @@ module.exports = { runtimeCaching: [ { - urlPattern: /^https?:\/\/(.*?).cloudfront.net\/bundles\/(.*?).js$/, - handler: 'networkFirst' + urlPattern: /^https?:\/\/\w+.cloudfront.net\/bundles\/\w+.js$/, + handler: 'cacheFirst' } ] }