Hmm, seems like the 500ing is only when I load the page in an incognito window... it's probably still my cache in the , but I'm going to replace the `StaleWhileRevalidate` strategy with `NetworkFirst`. This will mean that the page will have to wait for a network response, but it will maintain my offline support so the install prompt will still appear.

#webdev #pwa #serviceworker #workbox

Last updated 2 years ago

Nicolas Hoizey · @nhoizey
829 followers · 7360 posts · Server mamot.fr

Who still thinks writing a Service Worker for basic features (performance with cache, offline fallback) is cumbersome?

Using recipes make it so easy!

Here's the Service Worker for pack11ty.dev 😍

github.com/nhoizey/pack11ty/bl

⚓️ nicolas-hoizey.com/notes/2023/

#workbox #pwa #serviceworker

Last updated 2 years ago

Nicolas Hoizey · @nhoizey
802 followers · 7019 posts · Server mamot.fr

Is it ok to use Workbox's `injectManifest` with the recent recipes `warmCache` option?

I tried this without success in the Service Worker in Pack11ty:

```javascript
staticResourceCache({
warmCache: self.__WB_MANIFEST,
});
```

Other caches are warmed up, not this one.

⚓️ nicolas-hoizey.com/notes/2023/

#serviceworker #workbox

Last updated 2 years ago

Antonio Sarcevic · @sarcevic
41 followers · 95 posts · Server mastodon.online

Today, nearing release of 1.0, the SvelteKit Docs added an example hand-rolled Service Worker Implementation and also points to Vite Plugin PWA, but I personally prefer to use Workbox Modules myself to not write the low-level bits myself but still own the logic.

Right on time, because I just released my article on how to do it:

Create an offline-first and installable PWA with SvelteKit and workbox-precaching

sarcevic.dev/offline-first-ins

#offlinefirst #workbox #pwa #svelte

Last updated 3 years ago

Antonio Sarcevic · @sarcevic
41 followers · 95 posts · Server mastodon.online

I'm writing a guide on how make a web app installable, with offline support thanks to the power of and 📝😁

#workbox #serviceworkers #pwa #sveltekit

Last updated 3 years ago

Thomas Steiner :chrome: · @tomayac
410 followers · 5834 posts · Server toot.cafe

RT @passle_@twitter.com

🎉 New blog

The year is 2020. Service workers are still rocket science. Humanity still hasn't nailed service worker updates. The search continues.

dev.to/thepassle/on-pwa-update

🐦🔗: twitter.com/passle_/status/130

#updates #workbox #progressivewebapp #pwa

Last updated 5 years ago