Codementor Events

How to unregister service workers ?

Published Sep 10, 2018
How to unregister service workers ?

The service worker API comes with a Cache interface that lets you create stores of responses keyed by requests. The programmer is responsible for implementing the service worker script to handle the updates to cache. The items in the cache must be explicitly updated.

Recently I faced this issue with service workers. The cached items were not updated. As a result, I couldn’t get the latest committed work on my browser. The project was in beta phase, changing frequently. A lot of client requests came for the same. So I wrote this blog to help them and others who want to unregister service workers.

For Google Chrome users :

  1. Go to Developer Tools ( ctrl shift i / cmd opt i ) or right-click on any page element, then click Inspect.
  2. Go to the Application tab and then click on service workers in the left bar. It will list all the registered service workers.
  3. Click on unregister to disable that particular service worker.

![1*gnSDmexgvIO6gWU5plrm1A.png](https://cdn.filestackcontent.com/eOQfi9MITlKQmDXh1KP6)

For Mozilla Firefox users :

  1. Click on tools => web developer => service workers.
  2. It will list all the registered service workers. Click on unregister to disable that particular service worker.

Discover and read more posts from himank
get started
post commentsBe the first to share your opinion
Show more replies