Skip to content

Commit

Permalink
Updated runtime caching config
Browse files Browse the repository at this point in the history
  • Loading branch information
morkro committed Feb 13, 2017
1 parent 436cb91 commit ed8d738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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'
}
]
}

0 comments on commit ed8d738

Please sign in to comment.