Manipulating ESI request
Andreas Plesner Jacobsen
apj at mutt.dk
Fri Nov 18 15:25:53 CET 2011
On Fri, Nov 18, 2011 at 03:18:38PM +0100, Christian Jul Jensen wrote:
>
> I'm trying to use ESI for that. Which works, but I would like to
> manipulate the request for the esi depending on the request.
>
> I imagined something like
>
> set beresp.do_esi = true;
> set beresp.url = beresp.url + somePartOf(req.url);
That's too late. beresp is not available until after you've fetched from the
backend. So yes, you're rewriting it, but it has no effect.
--
Andreas
More information about the varnish-misc
mailing list