Do you use Service Workers in production? How has your experience been like?

twitter logo github logo ・1 min read

If you have used Service Workers in production, I'd like to hear about it!

  • How did you realize you needed them?

  • How was your experience setting it up, and maintaining it?

  • Results? Demos?

Thank you all!

twitter logo DISCUSS (7)
markdown guide
 

Even with dirt-cheap CDNs it seems like the respectable thing to do.
Especially for mobile devices. No CDN will solve poor last-mile connectivity, or save users data.

The main trap people fall into, in my experience, is thinking of it as "HTTP cache++", and just applying it to unstructured sites.

If you want a quality offline-first experience, you need to approach your product, from the get go, as an application. (Which just happens to be written with web technologies).

It is tremendously easier to add SSR to an offline-first, well-structured application using best practices than it is to make even a subset of your SSR-first application provide a usable offline experience.

 

Used it for a PWA, worked perfectly for caching certain things. Have not yet tried the offline capabilities.

 

Why not? Do you not need it? Or is the effort not worth it in your case?

 

Not really needed in my case but maybe for the next PWA or some future release.

 

I actually trying to use it on a ionic app, specially for the offline mode. It's simply not working for me lol.
Working perfectly on the navigator, but when the app is running on device that not working anymore

 

Hey, you must get the pwa from a secured Location... in Ionic Cordova eg. file:// are not ssl secured. Use a remote-Location like webapp.myserver.com in Cordova + Cordova-whithlist-plugin and serviceworker run in Cordova... in some cases you need to ad crosswalk also...

send with phone

 

Can't figure out how to con figure it for both aot build and then for production where the folder doesn't have the aot suffix..

Classic DEV Post from Jun 22 '17

Moving from a Java Monolith to Microservices at Squarespace

Julian Applebaum stopped by to discuss the challenges of moving Squarespace's Java monolith to a service-oriented architecture.

Sammy Israwi profile image
Software Developer who works mostly on Web stuff. I like JS, but I also like other things. I also do photography, and look at sneakers online that I will never be able to buy.