Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No-Cache in Opera

Status
Not open for further replies.

altendew

Programmer
Mar 29, 2005
154
US
Hi I currently have a popup, and when the user its the back button I need the page to reload. It works in standard browsers but won't work in Opera browser.

I currently have it set to.

<meta http-equiv="expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<html>
...

Is their anything else I can try, so it wont cache the page.
 
Try using this for the expires tag instead of "-1":

Code:
<meta http-equiv="expires" content="Mon, 5 Jan 2004 11:00:00 GMT" />

No idea if it will work or not, but worth a crack.

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Here is some information I found out.

Directly from Opera Website!!!

"You can use META tags to prevent Opera from caching pages, for example:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">"

Now I have those in my header, yet when I hit the back button I still see the same results, nothing changes until I hit refresh.

They must have some serious bug.
 

Aah sorry - I misread your original post. I didn't realise that the problem you were seeing was due to hitting the back button.

In cases like this, you cannot really assume that the browser will reload the page - after all, when you hit back, you should be taken back to the last page you viewed... not the last page with somehow new data that wasn't there the last time you viewed, surely?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
I agree with Dan. If I hit the back button I would expect the browser to use a cached version. In fact, if I were going thru a series of forms and hit back, and got a new page instead of the original one with my data still on it, I'd be annoyed.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top