[Zope3-dev] Zope resources and browser caching

Jim Fulton jim at zope.com
Thu Mar 10 18:06:14 EST 2005


Garrett Smith wrote:
> Jim Fulton wrote:
> 
>>Garrett Smith wrote:
>>
>>>I'm noticing that browser hit the server (Zope) for all images on a
>>>page for *every* request. I would assume that browsers cache images
>>>unless the server says they've changed.
>>>
>>>I don't know much about this, so it might be a stupid question.
>>>
>>>Is Zope telling the browser that each image needs to be acquired for
>>>every request? Is this something that can possibly be tweaked on
>>>Zope's side? Or my configuration?
>>
>>I'm 99% sure that for file resources, Zope is setting the
>>cache-control headers to cache resources for a day.  You can verify
>>this with tcpwatch. (I have verifed this myself recently, but it's
>>nice to see for yourself.) 
> 
> 
> Hmm...these images are coming from a resource directory.

Hm, maybe that implementation is bad. tcpwatch will tell you for sure.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list