5 ms·
Service workers have been around for a while. As far as I know their capabilities are restricted to the domain that includes them. So the guardian website can o
by Narretz 6y ago
Service workers have been around for a while. As far as I know their capabilities are restricted to the domain that includes them. So the guardian website can only intercept network requests made from itself.
- Grumbledour 6y agoWell, just goes to show you how out of date I am! Though after reading up on it, I still don't like it much. It makes the web behave in ways I don't expect it to and I don't really see why anyone would really need this, unless they want to fundamentally change the way the web is expected to work.
- nicoburns 6y agoIt's main usecase is for making web apps work offline. This allows you to "install" a web app rather than a full-blown native app. If iOS supported it properly, then you could have truly cross platform, sandboxed mobile apps. There used to be a declarative version AppCache, but in pracrice that made cache invalidation almost impossible to manage properly.
- rzzzt 6y agoYou can check "about:serviceworkers" on Firefox, and see how many sites install a worker when visiting their page. Spoilers: a whole lot of them