DEV Community

Sammy Israwi
Sammy Israwi

Posted on

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

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!

Latest comments (8)

Collapse
 
karas1 profile image
Karas • Edited

Good afternoon! In today's world, a well-written resume plays a key role in achieving success in a production worker career. This is your first step towards a coveted position, and I highly recommend that you learn how to properly prepare a production worker resume. This important document should highlight your professional skills, work experience, and accomplishments

Collapse
 
qm3ster profile image
Mihail Malo

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.

Collapse
 
callistom profile image
callistorr90

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

Collapse
 
sammyisa profile image
Sammy Israwi

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

Collapse
 
callistom profile image
callistorr90

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

Collapse
 
pungiish profile image
Jan

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..

Collapse
 
xeewi profile image
Guillaume Gautier

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

Collapse
 
likebrain profile image
Ricardo Rivera

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