UpUp icon indicating copy to clipboard operation
UpUp copied to clipboard

Double http call to endpoints

Open danielalmeidagoncalves opened this issue 6 years ago • 0 comments

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.

danielalmeidagoncalves avatar Feb 20 '19 14:02 danielalmeidagoncalves