News for hackers. Stuff that matters.
Re:Building an Offline Page for Theguardian.com by Narretz on Saturday July 25, 2020 @01:54PM (#23951122)
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.
Re:Building an Offline Page for Theguardian.com by Grumbledour on Saturday July 25, 2020 @02:00PM (#23951176)
Well, 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.
Re:Building an Offline Page for Theguardian.com by nicoburns on Saturday July 25, 2020 @02:28PM (#23951362)
It'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.

Re:Building an Offline Page for Theguardian.com by rzzzt on Saturday July 25, 2020 @03:29PM (#23951731)
You can check "about:serviceworkers" on Firefox, and see how many sites install a worker when visiting their page. Spoilers: a whole lot of them
Re:Building an Offline Page for Theguardian.com by perennate on Saturday July 25, 2020 @03:54PM (#23951905)
Mine shows none. Could be because of permanent private browsing. Do people still run browser on their personal computer without permanent private browsing enabled?
Re:Building an Offline Page for Theguardian.com by nicky0 on Sunday July 26, 2020 @01:11AM (#23954598)
Do people still run browsers? I wouldn't know because I access the web exclusively using telnet.