Mis-config in my VCL

Benimaur Gao benimaur at gmail.com
Sun Nov 25 16:13:54 CET 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20121125/17c85c53/attachment.html>


More information about the varnish-misc mailing list