Yep that solved it Tx a lot :) -----Original Message----- From: Andreas Jung [mailto:lists@zopyx.com] Sent: Tuesday, March 10, 2009 10:11 AM To: Dvir Bar-lev Cc: zope@zope.org Subject: Re: [Zope] refreshing problem -----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-----