Thank you for pointing out that for me!<br><br># varnishd -V<br>varnishd (varnish-2.1.3 SVN )<br>Copyright (c) 2006-2009 Linpro AS / Verdens Gang AS<br><br>I will upgrade my varnish soon :)<br><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 11:25 PM, kokoniimasu <span dir="ltr"><<a href="mailto:kokoniimasu@gmail.com" target="_blank">kokoniimasu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Benimaur.<br>
<br>
What is your Varnish version?<br>
beresp.do_esi is 3.0 later.<br>
<br>
ref<br>
<a href="https://www.varnish-cache.org/docs/3.0/installation/upgrade.html" target="_blank">https://www.varnish-cache.org/docs/3.0/installation/upgrade.html</a><br>
<br>
Regards,<br>
--<br>
Syohei Tanaka(@xcir)<br>
<a href="http://xcir.net/" target="_blank">http://xcir.net/</a><br>
(:3[__])<br>
<br>
2012/11/26 Benimaur Gao <<a href="mailto:benimaur@gmail.com">benimaur@gmail.com</a>>:<br>
<div><div class="h5">> 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<br>
> 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" target="_blank">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>
><br>
</div></div>> _______________________________________________<br>
> varnish-misc mailing list<br>
> <a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
> <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br></div>