Manipulating ESI request

Christian Jul Jensen christian at
Fri Nov 18 15:18:38 CET 2011


I am prototyping a setup of using Varnish as the hub for a 
Service-Oriented setup.

The idea is to be able to run stand-alone applications within the 
context of a cms transparently to the end-user.

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);

in vcl_fetch, but I cant make it work.

Is this not possible, or do I just not have a good enough understanding 
of the call sequence in varnish?


Christian Jul Jensen


More information about the varnish-misc mailing list