I wrote a post about one of the ways we are using varnish at TheLadders
Dridi Boukelmoune
dridi.boukelmoune at zenika.com
Fri May 3 22:08:50 CEST 2013
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);
}
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);
}
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
More information about the varnish-misc
mailing list