[Zope] zope + squid

sean.upton@uniontrib.com sean.upton@uniontrib.com
Sat, 18 May 2002 15:01:48 -0700


Squid will cache HTML even without expires headers if Last-modified is
present in the headers, albeit with refresh patterns configured in
squid.conf, which really are not well suited to dynamic content.

However, it may also be easier to just use (and understand the implications
of doing so) refresh patterns in squid.conf for images (instead of worrying
about expires headers), and use cache managers (or add expires to the
RESPONSE object) for dynamic stuff.  The downside to this is that an image
that may have changed a long time ago may take a while before doing
freshness checks when updated; on a high-traffic site, though, it might just
be best to keep your refresh patterns low, since it won't really do too much
to your HIT/MISS ratio.

Also, if you are using ZEO, consider just running an NTP server on your
proxy; this seems like the proper place for it, since it is likely you would
have one (or two) of those boxes to many Zope servers that could sync to it.

Sean

-----Original Message-----
From: Andreas Jung [mailto:andreas@andreas-jung.com]
Sent: Thursday, May 16, 2002 3:53 AM
To: Daniel Meier; zope@zope.org
Subject: Re: [Zope] zope + squid


- check the access.log of Squid (HITS vs. MISS)

- check that your Zope objects set the 'expires' HTTP
  header and other caching related headers

- check that the clocks of your Squid and your Zope
  machine are synchronized (when running on different 
  machines).

-aj

----- Original Message ----- 
From: "Daniel Meier" <krams@krims.ch>
To: <zope@zope.org>
Sent: Thursday, May 16, 2002 06:21
Subject: [Zope] zope + squid


> hi there
> 
> i just installed squid on my zopemachine to use
> it as a reverse proxy (speed up things ;-).
> i can access the site through squid, but I think
> it's not caching. is there something i should put
> in my zpt and dtml-objetcs and if yes how (I read
> something about http-header). can somebody explain?
> 
> thx
> 
> daniel
> 
> 
> 
> 
> _______________________________________________
> 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 )