diff --git a/sw-precache-config.js b/sw-precache-config.js index 478589686..1f94a51c9 100644 --- a/sw-precache-config.js +++ b/sw-precache-config.js @@ -12,9 +12,19 @@ module.exports = { staticFileGlobs: [ - 'index.html', + 'bower_components/webcomponentsjs/webcomponents-loader.js', + 'images/*', 'manifest.json', - 'bower_components/webcomponentsjs/*', ], - navigateFallback: 'index.html', + runtimeCaching: [ + { + urlPattern: /\/bower_components\/webcomponentsjs\/.*.js/, + handler: 'fastest', + options: { + cache: { + name: 'webcomponentsjs-polyfills-cache', + }, + }, + }, + ], };