I am using following meta tags to prevent browser caching for page:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Vary" content="*" />
Case:
- Browser is already opened with
page1
. - New link is pasted in the browser address bar and now secured page
page2
is opened. - User performs action on
page2
and is redirected topage3
.
When clicking back button on page3
, then user gets redirected to page1
(no caching and works fine in this case). When user clicks forward button on page1
, then the user is forwarded to the secured page page2
. This shouldn't happen.
All of above is tested on IE9.
How is this caused and how can I solve it?