Does this work in IE5? I'm using similar META tags which work for IE4 and Netscape but don't work in IE5. -=Brad=- -----Original Message----- From: Dr. Peer Griebel [mailto:peer@knoll-is.de] Sent: Thursday, May 18, 2000 10:32 AM To: zope@zope.org Subject: Re: [Zope] Cache Jonothan Farr wrote:
How can I disable the browser cache in my zope documents ?
One thing you can do is set the 'Expires' header like so:
<dtml-call "RESPONSE.setHeader('Expires', _.DateTime().rfc822())">
This works using Netscape. But for IE I had to use: <dtml-call "RESPONSE.setHeader('Expires', '-1')"> <dtml-call "RESPONSE.setHeader('Cache-Control', 'no-cache')"> <dtml-call "RESPONSE.setHeader('Pragma', 'no-cache')"> I think the last Pragma can be left out. But the Cache-Control header ist neccessary. I got the information out of rfc2616. -- connection reset by Peer _______________________________________________________________________ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:peer@knoll-is.de 88348 Saulgau privat: mailto:peer.griebel@gmx.de _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )