zope-plone.vcl

Wichert Akkerman wichert at wiggy.net
Fri May 2 07:50:01 CEST 2008


Ricardo Newbery wrote:
>
> On May 1, 2008, at 2:21 PM, Wichert Akkerman wrote:
>
>> Previously Ricardo Newbery wrote:
>>> Just poking around the tracker and I noticed some activity on the
>>> example plone vcl.  http://varnish.projects.linpro.no/changeset/2634
>>>
>>> Just thought I would chime in that the example has issues.
>>>
>>> First of all, it's unnecessary to filter cookie-authenticated requests
>>> as authenticated responses are already set with a past date Expires
>>> (although you need to set a default_ttl of zero seconds, 
>>> http://varnish.projects.linpro.no/ticket/236)
>>
>> Actually that is not true. It holds for document, but a quick test shows
>> it does not for images.
>
>
> Pardon, can you elaborate?  What does not hold true?
>
> I realize that setting a default_ttl of zero seconds introduces 
> another problem in that items without explicit cache control would not 
> be cached.  That's why fixing the varnish Expires handling would be 
> better.

Authenticated requests do not always get a past Expires-date in their 
response. This appears to only be true for documents (like ATDocument) 
but not for images (like ATImage).

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.





More information about the varnish-misc mailing list