I am using the service worker to cache requests made ot a rest service. The implementation corresponds to \'on network response\' described on this page https://web.dev/offline-