mirror of
https://github.com/Polymer/polymer-starter-kit.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #1066 from PolymerElements/abdonrd-patch-1
Cache the polyfills in runtimeCaching
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user