Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid. -aj --On Sonntag, 6. Oktober 2002 14:06 -0400 beno <zope@thewebsons.com> wrote:
Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 08:10 PM 10/6/2002 +0200, you wrote:
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid.
Err...I've obviously asked the question incorrectly! I don't_want_to cache pages, but it appears that Zope automatically does so, because it often takes a while for it to recognize the fact that I've edited a page. Why is that, and how can I change its behavior? TIA, beno
-aj
--On Sonntag, 6. Oktober 2002 14:06 -0400 beno <zope@thewebsons.com> wrote:
Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Isn't your problem a problem of your browser cache? -aj --On Sonntag, 6. Oktober 2002 14:43 -0400 beno <zope@thewebsons.com> wrote:
At 08:10 PM 10/6/2002 +0200, you wrote:
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid.
Err...I've obviously asked the question incorrectly! I don't_want_to cache pages, but it appears that Zope automatically does so, because it often takes a while for it to recognize the fact that I've edited a page. Why is that, and how can I change its behavior? TIA, beno
-aj
--On Sonntag, 6. Oktober 2002 14:06 -0400 beno <zope@thewebsons.com> wrote:
Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 08:46 PM 10/6/2002 +0200, you wrote:
Isn't your problem a problem of your browser cache?
No. That's what's so frustrating!
-aj
--On Sonntag, 6. Oktober 2002 14:43 -0400 beno <zope@thewebsons.com> wrote:
At 08:10 PM 10/6/2002 +0200, you wrote:
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid.
Err...I've obviously asked the question incorrectly! I don't_want_to cache pages, but it appears that Zope automatically does so, because it often takes a while for it to recognize the fact that I've edited a page. Why is that, and how can I change its behavior? TIA, beno
-aj
--On Sonntag, 6. Oktober 2002 14:06 -0400 beno <zope@thewebsons.com> wrote:
Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
You could also be the victim of enforced caching by your ISP. On Sun, 06 Oct 2002 16:43:46 -0400 beno <zope@thewebsons.com> wrote:
At 08:46 PM 10/6/2002 +0200, you wrote:
Isn't your problem a problem of your browser cache?
No. That's what's so frustrating!
-aj
--On Sonntag, 6. Oktober 2002 14:43 -0400 beno <zope@thewebsons.com> wrote:
At 08:10 PM 10/6/2002 +0200, you wrote:
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid.
Err...I've obviously asked the question incorrectly! I don't_want_to cache pages, but it appears that Zope automatically does so, because it often takes a while for it to recognize the fact that I've edited a page. Why is that, and how can I change its behavior? TIA, beno
-aj
--On Sonntag, 6. Oktober 2002 14:06 -0400 beno <zope@thewebsons.com> wrote:
Hi; Does Zope automatically cache pages, and if so, how do I edit its behavior? TIA, beno
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 10:12 PM 10/6/2002 +0100, you wrote:
You could also be the victim of enforced caching by your ISP.
Ah! That's probably it. But then again, doesn't that usually stay in force for days? These problems only seem to last hours. TIA, beno
On Sun, 6 Oct 2002, beno wrote:
At 08:46 PM 10/6/2002 +0200, you wrote:
Isn't your problem a problem of your browser cache?
No. That's what's so frustrating!
Are you using IE? Zope does not cache stuff but IE will even if you turn off it cache, have it check every time and send commands that it is not to cache the contents of a page. I have observed this many times when trying to debug stuff and IE would continue to retrieve an old verion of the page and when I ran a network analyzer I found out that IE had not even contacted the server for information. The only work around I have found for this so far is to close IE, clear its cache, and reboot the computer. While developing a site I use mozilla and konqueror since I have not seen them exhibit this behavior.
Am 07.10.2002, 06:44 Uhr schrüb kosh@aesaeion.com <kosh@aesaeion.com>:
The only work around I have found for this so far is to close IE, clear its cache, and reboot the computer.
Using <Ctrl>+<F5> with IE to reload a changed page seems to work most of the time. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
I've heard that Adding a question mark to the end of the URL and opening the page again will force a reload. On Sun, 6 Oct 2002 23:03:14 +0200, Jo Meder wrote: Am 07.10.2002, 06:44 Uhr schrüb kosh@aesaeion.com <kosh@aesaeion.com>:
The only work around I have found for this so far is to close IE, clear its cache, and reboot the computer.
Using <Ctrl>+<F5> with IE to reload a changed page seems to work most of the time. Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Mon, 7 Oct 2002 4:43 am, beno wrote:
At 08:10 PM 10/6/2002 +0200, you wrote:
You can use Zopes RamCacheManager, the AccleratedHTTPCacheManager or just put Zope behind a web proxy like Apache or Squid.
Err...I've obviously asked the question incorrectly! I don't_want_to cache pages, but it appears that Zope automatically does so, because it often takes a while for it to recognize the fact that I've edited a page. Why is that, and how can I change its behavior?
OK, the answer to your question is no, Zope does not cache pages. All caching of page rendering is opt-in, using the mechanisms that Andreas mentioned. That means there something else in your system that's caching the pages - be it your browser, or an intermediate proxy cache. <shift>+reload or <ctrl>+reload, depending on your browser, should force a reload. Internet Explorer is notorious for cache pages regardless of your cache settings. Richard
On Mon, 7 Oct 2002, Richard Jones wrote:
<shift>+reload or <ctrl>+reload, depending on your browser, should force a reload. Internet Explorer is notorious for cache pages regardless of your cache settings.
Richard
That does not force a reload. In IE that suggests a reload. I have watched the network a lot of times and seen that it does not always work. Darned if I know why it doesn't but that does not force it.
refresh problems in IE is usually related to transparent proxies. IE < 5.5SP1 never sends a 'Pragma: no-cache' header when you press Reload. it only does when a proxy is explicitly specified, or when you press Ctrl+Reload (not just Reload). that's why this behaviour is a problem with transparent proxies (which are invisible to IE). Netscape, Mozilla, and Opera, on the other hand, always send the Pragma header whether there's a proxy set or not. that's why they never have a problem with transparent proxies. transparent proxies are used a lot by ISPs, so people often see this refresh problem with IE. this is not IE's fault entirely though, it's even arguable that IE does the right thing. newer versions of IE however (IE 5.5SP1 and up) does send Pragma header. if you're using an older version of IE, use Ctrl-Reload. -- dave kosh@aesaeion.com wrote:
On Mon, 7 Oct 2002, Richard Jones wrote:
<shift>+reload or <ctrl>+reload, depending on your browser, should force a reload. Internet Explorer is notorious for cache pages regardless of your cache settings.
Richard
That does not force a reload. In IE that suggests a reload. I have watched the network a lot of times and seen that it does not always work. Darned if I know why it doesn't but that does not force it.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- dave
On Sun, 6 Oct 2002, David Garamond wrote:
refresh problems in IE is usually related to transparent proxies. IE < 5.5SP1 never sends a 'Pragma: no-cache' header when you press Reload. it only does when a proxy is explicitly specified, or when you press Ctrl+Reload (not just Reload). that's why this behaviour is a problem with transparent proxies (which are invisible to IE).
There is far mroe too it then that. I have done connections with IE 5,5.5,6 to localhost without a proxy and it still does not always grab the latest version of a page. When it does not it usually does not even make a request to the server. Sometimes I even see it return an error message that was returned by zope 30 minutes or more earlier with no network traffic. IE has a LOT of http problems and caching is just one of the many that is has.
MSIE must die. -aj --On Montag, 7. Oktober 2002 04:43 -0600 kosh@aesaeion.com wrote:
On Sun, 6 Oct 2002, David Garamond wrote:
refresh problems in IE is usually related to transparent proxies. IE < 5.5SP1 never sends a 'Pragma: no-cache' header when you press Reload. it only does when a proxy is explicitly specified, or when you press Ctrl+Reload (not just Reload). that's why this behaviour is a problem with transparent proxies (which are invisible to IE).
There is far mroe too it then that. I have done connections with IE 5,5.5,6 to localhost without a proxy and it still does not always grab the latest version of a page. When it does not it usually does not even make a request to the server. Sometimes I even see it return an error message that was returned by zope 30 minutes or more earlier with no network traffic. IE has a LOT of http problems and caching is just one of the many that is has.
proxies. IE < 5.5SP1 never sends a 'Pragma: no-cache' header when you press Reload.
That's a server-generated header, not a browser one, so IE would never send it to anyone. If you're saying that IE responds incorrectly to that header (or the equivalent meta tag), it looks to be true under certain circumstances: Bug in IE and awkward (illegal HTML) workaround: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q222064& A note on caching: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q234067 Also, "Pragma: no-cache" is an old HTTP 1.0 header (which is probably why it's handled badly with transparent proxies). I've successfully used "Expires:0" with Zope pages and IE browsers to force a reload. Cheers, Julian.
Julian Melville wrote:
That's a server-generated header, not a browser one, so IE would never send it to anyone.
actually the Pragma header can be sent by a client or server, and the http proxy is the one that's supposed to interpret that. Netscape browsers have always sent Pragma: header.
Also, "Pragma: no-cache" is an old HTTP 1.0 header (which is probably why it's handled badly with transparent proxies). I've successfully used "Expires:0" with Zope pages and IE browsers to force a reload.
more correctly, Pragma: is replaced by Cache-Control headers. -- dave
participants (9)
-
Andreas Jung -
beno -
David Garamond -
Jo Meder -
Julian Melville -
kent@springfed.com -
kosh@aesaeion.com -
Phil Harris -
Richard Jones