We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351aaa3 commit 73167e3Copy full SHA for 73167e3
packages/gatsby-plugin-offline/README.md
@@ -63,3 +63,19 @@ const options = {
63
clientsClaim: true,
64
}
65
```
66
+
67
+## Remove
68
69
+If you want to remove `gatsby-plugin-offline` from your site at a later point,
70
+substitute it with [`gatsby-plugin-remove-serviceworker`](https://www.npmjs.com/package/gatsby-plugin-remove-serviceworker)
71
+to safely remove the service worker:
72
73
+```diff:title=gatsby-config.js
74
+ plugins: [
75
+- `gatsby-plugin-offline`,
76
++ `gatsby-plugin-remove-serviceworker`,
77
+ ]
78
+```
79
80
+This will ensure that the worker is properly unregistered, instead of leaving an
81
+outdated version registered in users' browsers.
0 commit comments