fixe password signin with service-worker (#511)
This commit is contained in:
parent
22b485acd9
commit
e907dbe7e6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user