aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Browser soft refresh?

Open DaveKP opened this issue 8 years ago • 2 comments

Just curious if there is currently/is going to be a way for Blazor to hijack F5 to only refresh the current app page?

Browser back/forward work as I'd expect, but F5 seems to relaunch the whole application? Is it possible to restrict the full application reload to Ctrl+F5?

DaveKP avatar Jun 08 '18 12:06 DaveKP

Sorry, client-side applications can't change what the browser does when the user presses refresh. This is a deliberate limitation of browser APIs that applies to all client-side app frameworks.

SteveSandersonMS avatar Jun 08 '18 12:06 SteveSandersonMS

Makes sense, cheers. Guess it's server-side rendering I'm looking forward to then :)

DaveKP avatar Jun 08 '18 13:06 DaveKP