Closed ThanhDeveloper closed 1 month ago
This is probably Chrome trying to pre-fetch page metadata.
This is probably Chrome trying to pre-fetch page metadata.
But let's imagine that we do a lot of things before return view. Will it waste resources?
I don't know - it depends what your application does.
If it is Chrome pre-fetching, then it has nothing to do with ASP.NET Core anyway and won't be something the team can do anything about.
Do you see same behaviour in other browsers such as Edge, Firefox, Safari etc.?
It seems to be happening on chrome. edge does not have this happen
I don't know - it depends what your application does.
If it is Chrome pre-fetching, then it has nothing to do with ASP.NET Core anyway and won't be something the team can do anything about.
Do you see same behaviour in other browsers such as Edge, Firefox, Safari etc.?
It seems to be happening on chrome. edge does not have this happen. Stop app and reopen again. Then paste the url on anonymous tab in Chrome and it will be hit the breakpoint !
It seems like this is happening because of the browser. So I will close the issue. Thank
Is there an existing issue for this?
Describe the bug
I created new project with ASP.NET Core MVC latest version. It shows a strange behavior. When I launch the project and navigate to https://localhost:7266/ and add / manually after the url, the browser suggests the previous url visited. I pressed the scroll key on the keyboard to the url https://localhost:7266/email-verification without pressing the enter key. Debug will touch the code with the router above (but browser will not do anything and will not change. just hit breakpoint in my code).
Is this behavior correct? Is there any documentation about this? It would be a waste if users misuse this and affect the performance of the website.
Then pressed enter and it will be call again:
My code:
program.cs
Expected Behavior
Breakpoints should not fire when pressing enter on the browser
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.300
Anything else?
No response