New on ESI, page example doesn't work

Claudio Castro ccastro at altavoz.net
Wed Oct 6 18:16:22 CEST 2010


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 <ccastro at altavoz.net> 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





More information about the varnish-misc mailing list