[Zope3-dev] Zope resources and browser caching
Jean-Marc Orliaguet
jmo at ita.chalmers.se
Thu Mar 10 18:03:48 EST 2005
Garrett Smith wrote:
>Jim Fulton wrote:
>
>
>>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.
>>
>>
>
>So you're saying I should learn tcpwtch, eh? ;)
>
>sigh
>
>
Hi! you can also use:
$ wget --spider -S http://localhost:8080/yoursite/
to see the HTTP headers set by the server
/JM
More information about the Zope3-dev
mailing list