467,886 Members | 1,743 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,886 developers. It's quick & easy.

How to avoid using cached page in Opera when "Back" button in browser is clicked?!

Hi,

I need to stay on the current page even if user clicks "BACK" in browser.
Opera is very stubborn in attemp of turning cached page off, and using current.
Does anybody know the way how to say Opera not to show previous page when
I click "Back" button and show current page.
Which meta info should be specified?!

Currently I use the following code, which works fine with IE and FireFox
(no previously cached page is shown)
but it doesn't work with Opera 9

Response.ClearHeaders();
Response.AppendHeader("Cache-Control", "no-cache");
Response.AppendHeader("Cache-Control", "private");
Response.AppendHeader("Cache-Control", "no-store");
Response.AppendHeader("Cache-Control", "must-revalidate");
Response.AppendHeader("Cache-Control", "proxy-revalidate");
Response.AppendHeader("Cache-Control", "max-stale=0");
Response.AppendHeader("Cache-Control", "post-check=0");
Response.AppendHeader("Cache-Control", "pre-check=0");
Response.AppendHeader("Cache-Control", "max-age=0");
Response.AppendHeader("Cache-Control", "s-maxage=0");
Response.AppendHeader("Pragma", "no-cache");
Response.AppendHeader("Keep-Alive", "timeout=3, max=993");
Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT");
Response.AppendHeader("Last-modified", "Mon, 26 Jul 1997 05:00:00
GMT");

---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 15 '07 #1
  • viewed: 1797
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Veeresh | last post: by
1 post views Thread by ticars | last post: by
2 posts views Thread by COHENMARVIN | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.