I'm trying to expire pages in my application so when a user clicks the back button they will be forced to refresh.
I have the code:
Response.Expires = -1
Response.CacheControl = "no-cache"
in the page_load, outside of the postback handling, but it isn't giving me the results I expected (I have seen this used on an application that I worked on for a previous employer).
When I clicked the back button, I was expecting to get a message saying "Warning: Page has expired. Please click retry to refresh or cancel" (or something like that).
So, I'm not sure if I'm missing something or what?