How to catch an event when you click the back button?

I am wondering if there is a way to detect when a page reloads after clicking the back button of the navigator in ASP.NET?

thank

+3
source share
2 answers

Unfortunately, as far as I know, there is no reliable way to do this, since it depends primarily on the browser. Some browsers will physically reload the content when clicked again, others will cache it and just load the cache. Others will do a combination of both.

+5
source

The client side of the script may have some success with this, but the differences between browsers are significant.

, , , , - , "". !:)

, , , - , . , nonce nonces. UUID.

.

+2

Source: https://habr.com/ru/post/1758363/


All Articles