-----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-----
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to