How can I disable the browser cache in my zope documents ? Thanks Anderson
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())"> --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998
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
participants (3)
-
anderson -
Dr. Peer Griebel -
Jonothan Farr