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

Shane Hathaway shane@digicool.com
Tue, 20 Mar 2001 11:21:34 -0500


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

<dtml-call expr="RESPONSE.setHeader('Expires', 'Tue, 1 Jan 1980 12:00:00
GMT')">

There might be a simpler syntax but I know this works everywhere.  (The
header name might be "Expiration", though.)

Shane