[Zope] Prevent cache from being loaded in Zope/DTML

sam gendler sgendler@akamai.com
Wed, 21 Mar 2001 00:16:41 -0800


--------------218E72C538BA7C2257A240B9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Not all caches will respect the Expires: 0 form of the header.  You
should also add pragma: no-cache, which will hit all of the older
browsers.

--sam

Mohan Baro wrote:

> Hi All,
>
> How do I prevent a page from being loaded from the cache.
>
> I want the following eqiv. in zope/dtml
>      <% Response.Expires = 0 %> 'prevent cache from being loaded
>
> Mohan.
>
> _______________________________________________
> 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 )

--
-----------------------------------------------------
Natives who beat drums to drive off evil spirits are
objects of scorn to smart Americans who blow
horns to break up traffic jams.
                                  -- Mary Ellen Kelly



--------------218E72C538BA7C2257A240B9
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Not all caches will respect the Expires: 0 form of the header.&nbsp; You
should also add pragma: no-cache, which will hit all of the older browsers.
<p>--sam
<p>Mohan Baro wrote:
<blockquote TYPE=CITE>Hi All,
<p>How do I prevent a page from being loaded from the cache.
<p>I want the following eqiv. in zope/dtml
<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;% Response.Expires = 0 %> 'prevent cache
from being loaded
<p>Mohan.
<p>_______________________________________________
<br>Zope maillist&nbsp; -&nbsp; Zope@zope.org
<br><a href="http://lists.zope.org/mailman/listinfo/zope">http://lists.zope.org/mailman/listinfo/zope</a>
<br>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **
<br>(Related lists -
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-announce">http://lists.zope.org/mailman/listinfo/zope-announce</a>
<br>&nbsp;<a href="http://lists.zope.org/mailman/listinfo/zope-dev">http://lists.zope.org/mailman/listinfo/zope-dev</a>
)</blockquote>

<pre>--&nbsp;
-----------------------------------------------------
Natives who beat drums to drive off evil spirits are
objects of scorn to smart Americans who blow
horns to break up traffic jams.&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mary Ellen Kelly</pre>
&nbsp;</html>

--------------218E72C538BA7C2257A240B9--