I am working in asp.net core. I am facing an issue which is when I am returning to last visited web page through the browser back button, my controller action method is not being executed.
When we press the back button, the browser fetches data from the cache. So, if we want to execute the controller action method, we need to prevent the browser from caching that page.
I googled a lot about this. Through this, I found a lot of solution based on the cache in ASP.NET MVC. Like, disabling cache.
I checked this site and tried also. https://docs.microsoft.com/en-us/aspnet/core/performance/caching/response?view=aspnetcore-2.2 . It's not working.
We are performing some actions based on the cookies. So disabling cache, should not clear this also.
Is there any another way in ASP.NET Core to execute the controller action method when press browser back button?
Thanks in advance.