On 21.09.2011 19:24, Kevin wrote: > I'm curious if its possible to set varnish to pipe all subsequent requests > (ignoring any rules that say otherwise) if certain specific conditions are > met (i.e. user visits a login page and is returned to the main page).
With the help of a vmod (https://github.com/KristianLyng/libvmod-header), you could add a special cookie to the response and match it early in vcl_recv(). import header; ... if (req.http.Cookie ~ "(^|; )VCLPIPE=1") { return(pipe); } ... if (req.url ~ "^/login") { header.append(beresp.http.Set-Cookie,"VCLPIPE=1; path=/"); } Hauke.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
