re: Is there any pattern for handling network error when sending requests? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I also thought about the Cache API but I wondered is there any tool of pattern or does someone already implemented it on his app. Isn't that what...

Yes exactly, the service worker is taking advantage of the Cache API to handle network issues, you only need to implement the algorithm or use Workbox.js.

I guess exponential retry strategy is good. I wonder if there is variants like "up to a certain number of retry" etc... Really exciting, thanks to Service Workers we are closer to native app experience! I hope others browsers will support the Background Sync API soon!

code of conduct - report abuse