Requests through service-worker are done twice
I've done a simple service-worker to defer requests that fail for my JS application (following this example ) and it works well. But I still have a problem when requests succeed: the requests are done twice. One time normaly and one time by the service-worker due to the fetch() call I guess. It's a real problem because when the client want to save datas, they are saved twice... Here is the code : const queue = new workbox.backgroundSync.Queue('deferredRequestsQueue'); const requestsToDefer = [ { urlPattern: /\/sf\/observation$/, method: 'POST' } ] function isRequestAllowedToBeDeferred (request