Gatsby: Force remove service worker?

Created on 13 Nov 2018  路  2Comments  路  Source: gatsbyjs/gatsby

Summary

I have a website in development and I initially started with gatsby-plugin-offline enabled but decided I don't want to use it anymore. The problem is that the service worker is already registered so pushing updates for client to look at just result in it loading an old version. I don't really want to have to explain how to unregister the sw to them. Is there a way I can force its removal?

Most helpful comment

Yup!

gatsby-plugin-remove-serviceworker

Going to close this out as answered, but please feel free to re-open if we can assist further. Thanks!

All 2 comments

Yup!

gatsby-plugin-remove-serviceworker

Going to close this out as answered, but please feel free to re-open if we can assist further. Thanks!

This is priceless and I think it should be added somehow in the gatsby-plugin-offline documentation.

Was this page helpful?
0 / 5 - 0 ratings