I try it but, its seems like ESI doesn't work on vcl_deliver because it
only returns the html.
Thx
Laurence Rowe wrote:
On 6 October 2010 00:24, Claudio Castro <[email protected]> wrote:
vcl:
sub vcl_fetch {
if (req.url == "/test.html") {
esi; /* Do ESI processing */
set obj.ttl = 24 h;
} elseif (req.url == "/cgi-bin/date.cgi") {
set obj.ttl = 1m;
}
}
I get date.cgi correctly, but esi include seems to be executed just once (no
change on date info), any hint?
You are running esi when the page is fetched and then caching the result.
Run esi in vcl_deliver to make the include dynamic.
Laurence
--
Claudio Castro N.
Ingeniero Jefe Area de Plataforma
AltaVoz S.A.
http://www.altavoz.net
ViƱa del Mar:
2 Poniente 355 of 53
+56 32 276 8060
Santiago:
Pedro de Valdivia 555 of 315
+56 2 585 4264
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc