This recipe shows a Service Worker containing network logic to dynamically select the best content provider accordingly to server availability.
As a service provider, I want to provide the best source in terms of availability for a selected resource.
Use a Service Worker to intercept the requests to the resources and select the proper content provider accordingly to their availability.
Has it been useful?
Tell us what you think of this recipe by leaving a comment!