From e907dbe7e6f4556430902aa15929d2465d58b29f Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 17 Apr 2019 17:27:24 +0200 Subject: [PATCH] fixe password signin with service-worker (#511) --- scripts/webpack.client.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/webpack.client.config.js b/scripts/webpack.client.config.js index a8e80c0f..3e27fbe1 100644 --- a/scripts/webpack.client.config.js +++ b/scripts/webpack.client.config.js @@ -71,9 +71,10 @@ module.exports = (options = {}) => merge( }) ].concat(prod ? [ new GenerateSW({ + exclude: [/\.map$/, /^manifest.*\.js$/, /\.html$/], runtimeCaching: [ { - urlPattern: new RegExp(".*"), + urlPattern: new RegExp("^(?!.*(html))"), handler: "StaleWhileRevalidate", options: { cacheName: "code-server", @@ -87,7 +88,7 @@ module.exports = (options = {}) => merge( } // Network first caching is also possible. /*{ - urlPattern: "", + urlPattern: new RegExp("^(?!.*(html))"), handler: "NetworkFirst", options: { networkTimeoutSeconds: 4,