I wrote a post about one of the ways we are using varnish at TheLadders

Sean Allen sean at monkeysnatchbanana.com
Fri May 3 22:12:28 CEST 2013


On Fri, May 3, 2013 at 4:08 PM, Dridi Boukelmoune <
dridi.boukelmoune at zenika.com> wrote:

> Hi,
>
> This is very interesting and didactic, and I have a few questions :
>
> Why not simply trust the backend?
> if (beresp.http.x-invalidates && beresp.status >= 200 && beresp.status <
> 400) {
>   ban("obj.http.x-url ~ " + beresp.http.x-invalidates);
> }
>
>
Completeness I suppose. I see your point.
Something to think about.


> I don't see any handling of the PATCH method in vcl_recv, check it doesn't
> end up being piped:
> if (req.request != "GET" &&
>   req.request != "HEAD" &&
>   req.request != "PUT" &&
>   req.request != "POST" &&
>   req.request != "TRACE" &&
>   req.request != "OPTIONS" &&
>   req.request != "DELETE") {
>     /* Non-RFC2616 or CONNECT which is weird. */
>     return (pipe);
> }
>

We don't have any clients that use PATCH. But that is a good point, I
should add just to be safe.


>
> Best Regards,
> Dridi
>
>
> On Fri, May 3, 2013 at 9:15 PM, Sean Allen <sean at monkeysnatchbanana.com>
> wrote:
> > Hopefully, some find it helpful.
> >
> > I'm still fairly new to varnish. Improvements, suggestions etc welcomed.
> >
> > http://dev.theladders.com/2013/05/varnish-in-five-acts/
> >
> > --
> >
> > Ce n'est pas une signature
> >
> > _______________________________________________
> > varnish-misc mailing list
> > varnish-misc at varnish-cache.org
> > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 

Ce n'est pas une signature
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130503/cf5dcd63/attachment.html>


More information about the varnish-misc mailing list