Remix.run Logo
arm32 4 days 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/), 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 4 days ago | parent [-]

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

arm32 4 days ago | parent | next [-]

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

inetknght 4 days ago | parent [-]

about:config -> service -> change everything

then hate the modern internet >:(

nchmy 3 days ago | parent | prev [-]

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