Mis-config in my VCL

kokoniimasu kokoniimasu at gmail.com
Sun Nov 25 16:25:26 CET 2012


Hi, Benimaur.

What is your Varnish version?
beresp.do_esi is 3.0 later.

ref
https://www.varnish-cache.org/docs/3.0/installation/upgrade.html

Regards,
--
Syohei Tanaka(@xcir)
http://xcir.net/
(:3[__])

2012/11/26 Benimaur Gao <benimaur at gmail.com>:
> Hi,
> I am trying to get myself acquaintance with ESI.
> I add the following snippet to my default.vcl, and cannot get varnishd
> started anymore..
>
>  83 sub vcl_fetch {
>  84     if (req.url == "/esi.html") {
>  85        set beresp.do_esi = true;
>  86        set beresp.ttl = 24h;
>  87     } elseif (req.url == "/cgi-bin/date.cgi") {
>  88        set beresp.ttl = 1m;
>  89     }
>  90     if (!beresp.cacheable) {
>  91         return (pass);
>  92     }
>  93     if (beresp.http.Set-Cookie) {
>  94         return (pass);
>  95     }
>  96     return (deliver);
>  97 }
>
> and the error message is:
>
> # varnishd -f /etc/varnish/default.vcl -s malloc,10M -T 127.0.0.1:2000
> storage_malloc: max size 10 MB.
> Message from VCC-compiler:
> Unknown variable 'beresp.do_esi'
> At: (input Line 85 Pos 12)
>        set beresp.do_esi = true;
> -----------#############--------
> Running VCC-compiler failed, exit 1
> VCL compilation failed
>
> hope someone can help.
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list