[Zope] refreshing problem
Andreas Jung
lists at zopyx.com
Tue Mar 10 04:10:31 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10.03.2009 9:06 Uhr, Dvir Bar-lev wrote:
> Hi
>
>
>
> I want to force a certain page to automatically reload itself every
> time that the user goes to it from another page, meaning I don’t want
> the browser to cache that page, I tried to look around and what I found
> was that if I included these 2 lines in the dtml method that shows the
> page it’s supposed to reload the page every time it is accessed, so what
> I did was I created a dtml method named RefreshPage that looks like this:
>
>
>
> <meta http-equiv="expires" content="0"></meta>
>
> <meta http-equiv="pragma" content="no-cache"></meta>
>
>
>
> I than called this method from the dtml page like this:
>
>
>
> <dtml-var RefreshPage>
>
>
>
> But the browser is still loading the page from cache memory, I also
> tried putting the 2 lines directly inside the page but it still won’t work.
>
> I tried both firefox and explorer.
>
> I tried looking in the web but all I could find was what I just tried.
>
>
You should set the related HTTP headers using
REQUEST.RESPONSE.setHeader(header, value) instead of depending on the
http-equiv magic which is obviously ignored by most browsers.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm2IHcACgkQCJIWIbr9KYyZQgCgkBeEPnn2hEudfbqBRALOGSnp
gfIAnizUSUhGVp+ZuIrawTCCQkv1MNtB
=NH9U
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20090310/c2a07ecd/attachment.vcf
More information about the Zope
mailing list