I create a new Blazor WASM Application in Visual Studio following these steps:
Create a new WASM Application
- Create a new Blazor WASM application.
- Check ASP.NET core.
- Check PWA.
- Setup individual user accounts.
Create a new database for the application
- Open the Package Manager Console in Visual Studio
- Update-Database.
Run the new Application
- Run the application.
- Register a new user.
- Log in with the new user.
Inspect the page
- Inspect the page in the browser.
- Look at the Network tab.
- Refresh the page.
Output
QUESTION: Why the double downloads? Can it be avoided?
You can see in the image above that many files are downloaded twice. The openid-configuration is even downloaded 4 times. And some of the requests are cancelled.
I am assuming that the index.html is downloaded first and then it goes to the login-callback which then redirects back. But I'm not sure if I understand and if the double downloads are absolutely necessary or can be solved somehow.
