Merge pull request #1066 from PolymerElements/abdonrd-patch-1

Cache the polyfills in runtimeCaching
This commit is contained in:
Keanu Lee
2017-10-02 11:08:19 -07:00
committed by GitHub

View File

@@ -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',
},
},
},
],
};