5 ms·
> No I don't want to receive push notification from your site... A PWA does not equal push notifications. Those are completely optional and should of course on
by mxbck 9y ago
> No I don't want to receive push notification from your site...
A PWA does not equal push notifications. Those are completely optional and should of course only be added where that makes sense. And even then, you'd have to agree to receiving them first.
> ...or ability to visit your website offline
Fine, you don't have to. In that case, the service worker just improves page speed and reduces data usage.
- finchisko 9y agoThose were just examples. PWA is short for progressive web application. And this article title is "Turning your website into PWA". My point is, that if your site is just regular website not an application, staying conservative about implementing features is better, then implementing them recklessly, just for temporary page rank boost, or to show how cool programmer your are.
- StavrosK 9y ago> the service worker just improves page speed and reduces data usage Hmm, how does it do that? I don't see what advantages it may have over caching and HTTP/2 push...
- finchisko 9y agobrowser already do caching well, but you have to setup your server to sent correct headers and it's kind of difficult (unpractical) to set different caching policy for different kind of files if you're hosting many different sites, or you're on shared hosting. With service worker you can have more granular control over caching. But again, you really have to know, what are you doing. For regular website using service worker to improve caching is IMO overkill and also there is small chance, you'll make it unwillingly worse.
- eberkund 9y ago> it's kind of difficult (unpractical) to set different caching policy for different kind of files if you're hosting many different sites, or you're on shared hosting No it's not. In Apache and Nginx (and I assume any other half decent web server) it is very easy to specify different cache times for each file extension. Same on shared hosting (.htaccess)
- finchisko 9y ago>Same on shared hosting (.htaccess) apache yes, but what about nginx? And there are many other ways, how to host your site (Amazon S3,...). Also by unpractical I mean you have to have access to the server (ssh...). IMO it should be more concern of an app then server. But I'm not advocate for service worker for static resource caching (for websites).
- eberkund 9y agoPretty much all the shared hosts I've seen use Apache (or lighttpd) specifically because of htaccess files.