Skip to content

Commit

Permalink
Service workers note (#10276)
Browse files Browse the repository at this point in the history
* Service workers note

- Adding a note that informs readers that the service workers will only register on a production build.
- I was confused and I had to dig into the source code to find out why they weren't working on develop

* Update docs/docs/add-offline-support-with-a-service-worker.md

Agreed

Co-Authored-By: danielcooke1996 <[email protected]>
  • Loading branch information
dan-cooke authored and DSchau committed Dec 6, 2018
1 parent 78f857b commit 8ccd222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/add-offline-support-with-a-service-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Add this plugin to your `gatsby-config.js`

That's all you need to add offline support to your Gatsby site.

Note: Service worker registers only in production builds (`gatsby build`).

## References

- [Service Workers: an Introduction](https://developers.google.com/web/fundamentals/primers/service-workers/)
Expand Down

0 comments on commit 8ccd222

Please sign in to comment.