-
Notifications
You must be signed in to change notification settings - Fork 11
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 requests #25
Comments
Are you sure it is being sent over the wire twice? You will see lots of cached responses (5th column - size - is greyed out) and two actual network requests (about 612 b each). On those two requests that made it to the network, you will see two entries in the list as the page requests the network data and the service worker intercepts and performs the actual call. If you are seeing two actual network requests to the same resource, you might need to modify the service worker to just pass all requests to your identity provider without interruption. |
Yes, it is send over the network twice. I get two requests to my controller. One from ServiceWorker.js, and one from the website itself. If i deregister the serviceworker and remove the includes from _Host.cshtml, things are working like they should. |
I have made a sample project, to see the behavoir. (https://github.com/newdeal30/BlazorPWAApp3) Thanks and regards |
Hi MisterMagoo,
Thanks for your package.
I know you stopped development on the package, but maybe you can answer me a question.
My server-side blazor pwa project uses identity. When i login to the page, the POST requests get send 2 times.
When i look at the developer options from the browser i see, that 1 time the POST is send from the form, and one time from ServiceWorker.
Do you know that problem?
Thanks and regards
Michael
The text was updated successfully, but these errors were encountered: