From bba0b465198e71caaf19cb813ada297b723557e2 Mon Sep 17 00:00:00 2001 From: Antti Pilto Date: Tue, 2 Oct 2018 21:24:32 +0300 Subject: [PATCH] Allow cache busting --- webpack.config.prod.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webpack.config.prod.js b/webpack.config.prod.js index c314b79..04b6c8d 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -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 = { } ] } -}; \ No newline at end of file +};