Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to avoid using cached page in Opera when "Back" button in browser is clicked?!

Reply
Thread Tools

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

 
 
Michael Nemtsev
Guest
Posts: n/a
 
      02-15-2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to avoid public funtions in x.js to be cached by IE? henrywuxg@gmail.com Javascript 2 09-19-2007 12:09 PM
my cached dataset just wont stay cached!! Craig G ASP .Net 0 03-07-2005 10:02 AM
How to avoid external js file being cached ? Homer J. Simpson Javascript 2 01-17-2005 11:36 AM
Previous Link Cached after Browser Back Button pressed Earl Teigrob ASP .Net 0 12-15-2003 06:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57