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