4 ms·
any proof of that claim? EDIT: still talking about regular websites? First visit or repeated visit? Most website already can take advantage of plain browser ca
by finchisko 9y ago
any proof of that claim?
EDIT: still talking about regular websites? First visit or repeated visit? Most website already can take advantage of plain browser caching and service worker is IMO hard to sell here.
- fenwick67 9y agoService workers can manually cache stuff ahead of time if it thinks you will need them later. For example if you visit the admin login page, it can trigger a fetch of the assets for the admin page, then stuff them in its own cache.
- sloppycee 9y agoService workers are not needed, and manually managing the cache seems overly complex. https://css-tricks.com/prefetching-preloading-prebrowsing/ https://css-tricks.com/prefetching-preloading-prebrowsing/
- SimeVidas 9y agoRepeat visit, of course :) The service worker can't do anything before it's installed (during the first visit). The browsers' network cache is great, but IIUC the browser still performs those 'if-modified-since' requests, doesn't it? Additionally, depending on your server setup and CDN, some assets may have a short max-age value, meaning they're reloaded more often than needed. With service worker, the website can create its own cache and have full control over it. In other words, the site can guarantee that its assets will be loaded directly from the browser's memory.