[Zope] No-cache

Joe Goldthwaite joe at goldthwaites.com
Tue Jul 27 21:18:08 EDT 2004


Hello everyone,

I've been trying to get a new navigation system working that uses cookies to
change what data is viewed. Because of the way the system works, I want to
force a page refresh every time a page is displayed.  If the user presses
the back button, I want to refresh the page.  If I use JavaScript to go back
two pages, I want the pages refreshed.

This seems like a pretty simple thing to do. All you need to do is disable
the caching of the pages. There's a lot of information on the web about it.
The only problem is, I can't get anything to work.

So far, I've tried putting some meta tags in the head statement.  I've
various combinations of;

<meta http-equiv="expires" content="-1">
<meta http-equiv="expires" content="0"
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store">

No combination of the above have worked on either Firebird or IE6.

I was able to get a JavaScript routine that forced a refresh if a cookie was
not present and then cleared the cookie out but it forced a double load on
new pages.

Some of the documentation I've been able to find mentions that the no-cache
stuff only works with HTTP1.1 and that is controlled by the server.  Most of
the documentation I've been able to find on the subject is years old.  My
questions are;

What version of HTTP does Zope use?

Is there any way to change it?

Is there some setting on the Zope server that I can use to turn off all
caching?

Anyone have any other idea why the above doesn't work?

Thanks!

Joe Goldthwaite



More information about the Zope mailing list