[Zope] Reloading a page.

Casey Duncan cduncan@kaivo.com
Thu, 08 Mar 2001 08:11:22 -0700


Daniel Corr=EAa de Azevedo wrote:
>=20
>         Whatz up, guys?
>=20
>         Well, I=B4m having problems in reloading a page that shows info=
rmation
> contained in a table of a database.
>         The problem is that whenever I include some data in the databas=
e at
> another page it send=B4s me back to that page that shows information, i=
t
> doens=B4t show the update, but a cached page. I=B4m using the IE 5.0 an=
d I
> haven=B4t figured out how to reload it every time without changing the
> configuration of the browser.
>         I=B4ve tryed the same code that I=B4m using in IE 5.0  in IE 5.=
5  and
> this problem doens=B4t happen.
>         Hope that you all could give me some help.
>         Thank=B4s,
>                                                 Daniel C. Azevedo
>=20

Try putting this in the head of your standard_html_header:

<dtml-if no_cache>
   <META HTTP-EQUIV=3D"pragma" CONTENT=3D"no-cache">=20
</dtml-if no_cache>

Then set a boolean property on the DTML Document (or folder if it's a
method) called "no_cache". This should prevent the browser from caching
the page.
--=20
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>