fixe password signin with service-worker (#511)

This commit is contained in:
Luca Casonato 2019-04-17 17:27:24 +02:00 committed by Asher
parent 22b485acd9
commit e907dbe7e6

View File

@ -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,