Skip to content

Commit e907dbe

Browse files
lucacasonatocode-asher
authored andcommitted
fixe password signin with service-worker (#511)
1 parent 22b485a commit e907dbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/webpack.client.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ module.exports = (options = {}) => merge(
7171
})
7272
].concat(prod ? [
7373
new GenerateSW({
74+
exclude: [/\.map$/, /^manifest.*\.js$/, /\.html$/],
7475
runtimeCaching: [
7576
{
76-
urlPattern: new RegExp(".*"),
77+
urlPattern: new RegExp("^(?!.*(html))"),
7778
handler: "StaleWhileRevalidate",
7879
options: {
7980
cacheName: "code-server",
@@ -87,7 +88,7 @@ module.exports = (options = {}) => merge(
8788
}
8889
// Network first caching is also possible.
8990
/*{
90-
urlPattern: "",
91+
urlPattern: new RegExp("^(?!.*(html))"),
9192
handler: "NetworkFirst",
9293
options: {
9394
networkTimeoutSeconds: 4,

0 commit comments

Comments
 (0)