Double http call to endpoints
danielalmeidagoncalves opened this issue · 0 comments
danielalmeidagoncalves commented
This is more of a question rather than an issue. I am still a newby when we are talking about service workers. But my question is, it is normal that when I register a web worker trough UpUp that whenever I call a specific endpoint in my frontend this triggers 2 times the same request? For example if I inspect the network tab on the Chrome Developer Tool something like this is shown:
Name | Status | Type | Initiator | Size | .... |
---|---|---|---|---|---|
myEndpoint | 200 | xhr | angularjs | from (ServiceWorker) | .... |
(gear Icon) myEndpoint | 200 | fetch | upup.sw | 700 B | .... |
My fear is that by integrating UpUp and service worker related development I am introducing a double request problem for each time I call internal our external API.