4 ms·
Disabling service workers. Can somebody explain in one sentence to a non-web programmer what are service workers and why disabling them can improve functionalit
by usr1106 6y ago
Disabling service workers. Can somebody explain in one sentence to a non-web programmer what are service workers and why disabling them can improve functionality?
Yes, disabling a cache can improve functionality if you have coherency bugs.
Anecdotally I have heard service workers can be misused to do crypto-mining in people's browsers. Not that I believe Twitter would try that, but more dodgy sites.
- CodesInChaos 6y agoAn http proxy a website can install for itself. It allows it to control the caching behaviour programmatically (choose which requests go to the server, which are satisfied by the cache, and choosing to eagerly add certain resources to the cache). This is mainly used to make web applications (especially PWAs) work offline.
- hayz 6y agoI know service workers are used for PWAs and notifications, among other uses. There's an internal webpage in most browsers that shows you what service workers you have installed (Firefox: "about:serviceworkers"). The answer is a lot, because every web page you visit can install one without your permission. They seem like small javascript applets, and I'm not sure under what conditions they are allowed to run. I am afraid they could be allowed to run even when you are not visiting the page, and since I have no interest in PWAs or notifications I just disabled service workers entirely. You can do that in about:config.