Suppose that you’ve got a two-page website. The first page takes in data from the user, then redirects to a second page where queried/derived results are displayed.
Question: Is there any way to ensure that if the user presses the browser backbutton on the second page, a “clean” version of the first page – like it had just been loaded or refreshed – will appear with all the code behind the form intact? A technique that will work with all browsers? There doesn’t seem to be any consistency to the results you get with the backbutton on different browsers – sometimes it works, sometimes you get what was entered previously with the code behind the form inoperable. I can make it work with a programmatic backbutton on the second page, but you don’t know that the user will always use it. Is there a workaround that can overcome these browser backbutton inconsistencies?