Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/), 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.



I encourage everybody to not use service workers so my computer doesn't waste resources.


Instructions unclear. Prefetching 8GB of media to a service worker cache on your browser. And you can't stop me! Muahahah


about:config -> service -> change everything

then hate the modern internet >:(


You should get off the React-powered web if you're worried about that...




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: