No-Cache and Back Button
Here's the scenario, and my pages:
1. First Page - Search Form
2. Second Page - Search Results (via POST)
3. Third Page - Search Item Detail
At the top of my code on the Second Page (Search Results)I have included the following lines of code:
Response.AddHeader "pragma","no-cache"
Response.CacheControl = "no-cache"
So this means Search Results won't be cached. However, when I go to the Third Page (Details) and click on the back button, an error page appears ("The Page Cannot Be Displayed"). Naturally, because that page wasn't cached at all.
How can that page be prevented from appearing? Or better yet, how do I refresh the Second Page when hitting the back button?
Please help. Thanks in advance!
|