3 ms·
I encourage everybody to work with service workers to encounter the horror that can be service workers gone wrong. Pro-tip: Use Serwist (https://serwist.pages.
by arm32 1y ago
I encourage everybody to work with service workers to encounter the horror that can be service workers gone wrong.
Pro-tip: Use Serwist (https://serwist.pages.dev/ https://serwist.pages.dev/), don't learn Workbox. Serwist has beautiful Vite integration for preloading app chunks from a build manifest. Learn all the different caching strategies. Consider dynamic caching strategies, eg. switching between two strategies for a specific cache via messaging throughout the lifetime of the app. Deep breaths. Have a service worker kill-switch in case things go wrong.
- inetknght 1y agoI encourage everybody to not use service workers so my computer doesn't waste resources.
- arm32 1y agoInstructions unclear. Prefetching 8GB of media to a service worker cache on your browser. And you can't stop me! Muahahah
- inetknght 1y agoabout:config -> service -> change everything then hate the modern internet >:(
- nchmy 1y agoYou should get off the React-powered web if you're worried about that...