I've unset beresp.http.Etag but still doesn't work. After TTL expires, the Age header shows "0":<br><br>Via 1.1 varnish, 1.1 V107WPROD<br>Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>
Age 3<br>Date Tue, 11 Jan 2011 18:06:04 GMT<br>Content-Type image/jpeg<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>Last-Modified Tue, 11 Jan 2011 17:51:29 GMT<br>X-Cacheable 1800.002<br>X-Varnish 1806792167 1806789988<br>
X-Varnish-Cache HIT Varnish (12)<br><br>Via 1.1 varnish, 1.1 V107WPROD<br>Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 525<br>Date Tue, 11 Jan 2011 18:14:46 GMT<br>
Content-Type image/jpeg<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>Last-Modified Tue, 11 Jan 2011 17:51:29 GMT<br>X-Cacheable 1800.002<br>X-Varnish 1808417729 1806789988<br>X-Varnish-Cache HIT Varnish (5528)<br>
<br>Via 1.1 varnish, 1.1 V107WPROD<br>Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 1462<br>Date Tue, 11 Jan 2011 18:30:23 GMT<br>Content-Type image/jpeg<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>
Last-Modified Tue, 11 Jan 2011 17:51:29 GMT<br>X-Cacheable 1800.002<br>X-Varnish 1811285962 1806789988<br>X-Varnish-Cache HIT Varnish (15342)<br><br>alter TTL 1800s:<br><br>Via 1.1 varnish, 1.1 V107WPROD<br>
Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 0<br>Date Tue, 11 Jan 2011 19:22:07 GMT<br>Content-Type image/jpeg<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>
Last-Modified Tue, 11 Jan 2011 19:10:04 GMT<br>X-Cacheable 1800.007<br>X-Varnish 1821237358<br>X-Varnish-Cache MISS Varnish<br><br>Any ideas?<br><br>Thank you!<br>Roberto.<br><br><div class="gmail_quote">2011/1/11 pablort <span dir="ltr"><<a href="mailto:pablort%2Bvarnish@gmail.com">pablort+varnish@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Notice how Etag changes:<br><br><br>First and second request:<br>Etag "a76-49992a41d1b5d"<br>
<br>Last request:<br>Etag "a76-499933333a882"<br><br><br>Try (in vcl_fetch):<br><br><font style="font-family: courier new,monospace;" size="4">unset beresp.http.Etag;</font><br>
<br>or change Apache to use only Size and MTime to create the Etag:<br><br><div style="font-family: courier new,monospace;"><p><font size="4"><code>FileETag MTime Size</code></font></p></div>Cheers,<br><br>
<div class="gmail_quote">2011/1/11 Roberto O. Fernández Crisial <span dir="ltr"><<a href="mailto:roberto.fernandezcrisial@gmail.com" target="_blank">roberto.fernandezcrisial@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">
Hi guys,<br><br><div style="margin-left: 40px;">I have a question about varnish vcl, can you help me? Once the varnish service is started the object (in this case an image) is cached:<br><br>Via 1.1 varnish, 1.1 V107WPROD<br>
Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 4<br>Date Tue, 11 Jan 2011 14:20:01 GMT<br>Content-Type image/jpeg<br>Etag "a76-49992a41d1b5d"<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>
Last-Modified Tue, 11 Jan 2011 14:10:04 GMT<br>X-Cacheable 1800.004<br>X-Varnish 826882404 826879249<br>X-Varnish-Cache HIT Varnish (9)<br><br><br>After some minutes later:<br><br>Via 1.1 varnish, 1.1 V107WPROD<br>
Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 1299<br>Date Tue, 11 Jan 2011 14:41:36 GMT<br>Content-Type image/jpeg<br>Etag "a76-49992a41d1b5d"<br>Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>
Last-Modified Tue, 11 Jan 2011 14:10:04 GMT<br>X-Cacheable 1800.004<br>X-Varnish 832397538 826879249<br>X-Varnish-Cache HIT Varnish (21056)<br><br><br>When TTL expires (1800s) the object is no longer been cached:<br>
<br>Via 1.1 varnish, 1.1 V107WPROD<br>Connection Keep-Alive<br>Proxy-Connection Keep-Alive<br>Content-Length 2678<br>Age 0<br>Date Tue, 11 Jan 2011 14:58:03 GMT<br>Content-Type image/jpeg<br>Etag "a76-499933333a882"<br>
Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5<br>Last-Modified Tue, 11 Jan 2011 14:50:05 GMT<br>X-Cacheable 1800.002<br>X-Varnish 836621253<br>X-Varnish-Cache MISS Varnish<br><br><br>Unless the service is restarted. Do you have any idea what could be happen? Do you see something abnormal in headers? My Varnish version is "varnishd (varnish-2.1.3 SVN )".<br>
<br></div>Thank you very much,<br><font color="#888888">Roberto.<br>
</font><br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br>
</blockquote></div><br>