Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1066 from PolymerElements/abdonrd-patch-1
Browse files Browse the repository at this point in the history
Cache the polyfills in runtimeCaching
  • Loading branch information
keanulee authored Oct 2, 2017
2 parents b8d74a5 + 1a78872 commit 6bf448c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions sw-precache-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
},
],
};

0 comments on commit 6bf448c

Please sign in to comment.