Lusito / forget-me-not

Make the browser forget website data, except for the data you want to keep.
zlib License
226 stars 25 forks source link

What does clear "Service Workers" do? #36

Closed Joel889 closed 6 years ago

Joel889 commented 6 years ago

What does clear "Service Workers" do, and what are the implications of doing that? I mean, why wouldn't someone want to clean them?

Lusito commented 6 years ago

I haven't read deeply into it, but from what I gather, Service Workers are a way to allow webapps to keep running even when the network connection is lost. Performing computations in the background, intercepting network requests: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API

I've mostly included this cleaning option since it was available in the API and users might want it at some point, when service workers are used in more websites (currently, I know no websites which do).

Hope this helps.