Allow cache busting

This commit is contained in:
Antti Pilto 2018-10-02 21:24:32 +03:00
parent 641d031bdf
commit bba0b46519
1 changed files with 3 additions and 2 deletions

View File

@ -42,10 +42,11 @@ module.exports = {
new SWPrecacheWebpackPlugin( {
cacheId: 'kana-quiz',
filename: 'sw.js',
stripPrefix: '/home/anzz/Code/kanaquiz/',
maximumFileSizeToCacheInBytes: 4194304,
minify: true,
runtimeCaching: [{
handler: 'cacheFirst',
handler: 'networkFirst',
urlPattern: /\.(woff2|svg|ttf|eot|woff|html)$/,
}],
})
@ -71,4 +72,4 @@ module.exports = {
}
]
}
};
};