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

_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

Reply via email to