Allow cache busting
This commit is contained in:
parent
641d031bdf
commit
bba0b46519
|
@ -42,10 +42,11 @@ module.exports = {
|
||||||
new SWPrecacheWebpackPlugin( {
|
new SWPrecacheWebpackPlugin( {
|
||||||
cacheId: 'kana-quiz',
|
cacheId: 'kana-quiz',
|
||||||
filename: 'sw.js',
|
filename: 'sw.js',
|
||||||
|
stripPrefix: '/home/anzz/Code/kanaquiz/',
|
||||||
maximumFileSizeToCacheInBytes: 4194304,
|
maximumFileSizeToCacheInBytes: 4194304,
|
||||||
minify: true,
|
minify: true,
|
||||||
runtimeCaching: [{
|
runtimeCaching: [{
|
||||||
handler: 'cacheFirst',
|
handler: 'networkFirst',
|
||||||
urlPattern: /\.(woff2|svg|ttf|eot|woff|html)$/,
|
urlPattern: /\.(woff2|svg|ttf|eot|woff|html)$/,
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue