How to clear Chrome Service Worker cache?


👤 Diwas Poudel    🕒 Jun 12 2022    📁 Fix    📜 0 comment

A service worker is a script that your web browser runs in the background, independently of a web page, and does not require user interaction as well. 

Service Workers are helpful because they enable websites and web apps to load their content more quickly, regardless of the network being used. Offline access, push notifications, background sync, and additional capabilities are made possible by them. In order to facilitate faster loading, service workers are responsible for the storage of items brought back from visited sites and kept locally for a variety of reasons. Items could be stylesheets, scripts, HTML, images, or any number of other types of assets.

Due to this, the Service Worker Cache Storage folder consumes a lot of disk space and you want to clear it. Clearing this from the individual website one by one is not a viable solution and want to clear it all at a time then you are in right place.

I also faced the same problem, When I used File System Visualization Tools and found that the service worker cache storage folder is taking up a significant amount of space on the disk. And you just want to clear Service Worker Cache and nothing other cookies and other things. If the same happens to you then ourtechroom will guide you to clear those Service Worker Cache on your Chrome Browser.

How to clear chrome Service Worker Cache in Windows?

Here are the steps to clear the chrome Service Worker Cache in Windows.

1 Open File Explorer and at the top type below and press Enter

%userprofile%\AppData\Local\Google\Chrome\User Data

Here you will see the various folder and we are interested in the Default and Profile X (x can be 1,2,3 ...) folder.

2. Go inside the Default folder and search for the Service Worker folder and just delete all the content inside it, especially the CacheStorage

 folder.

service-worker-content-delete
fig. Delete everything inside the service worker folder

3  Again come back to the User Data folder, and then go to the Profile X folder and find Service Worker Folder and just delete all the content inside it. And do this for all the Profiles available like Profile 1, Profile 2, and soon.

How to clear chrome Service Worker Cache in macOS?

You can navigate to the following path and delete everything.

~/Library/Application Support/Google/Chrome/Default/Service Worker

How to clear chrome Service Worker Cache in Linux?

You can navigate to the following path and delete everything inside it, especially CacheStorage.

~/.config/google-chrome/Default/Service Worker/