Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double http call to endpoints #136

Open
danielalmeidagoncalves opened this issue Feb 20, 2019 · 0 comments
Open

Double http call to endpoints #136

danielalmeidagoncalves opened this issue Feb 20, 2019 · 0 comments

Comments

@danielalmeidagoncalves
Copy link

danielalmeidagoncalves commented Feb 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant