Notice how Etag changes:
First and second request: Etag "a76-49992a41d1b5d" Last request: Etag "a76-499933333a882" Try (in vcl_fetch): unset beresp.http.Etag; or change Apache to use only Size and MTime to create the Etag: FileETag MTime Size Cheers, 2011/1/11 Roberto O. Fernández Crisial <[email protected]> > Hi guys, > > 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: > > Via 1.1 varnish, 1.1 V107WPROD > Connection Keep-Alive > Proxy-Connection Keep-Alive > Content-Length 2678 > Age 4 > Date Tue, 11 Jan 2011 14:20:01 GMT > Content-Type image/jpeg > Etag "a76-49992a41d1b5d" > Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5 > Last-Modified Tue, 11 Jan 2011 14:10:04 GMT > X-Cacheable 1800.004 > X-Varnish 826882404 826879249 > X-Varnish-Cache HIT Varnish (9) > > > After some minutes later: > > Via 1.1 varnish, 1.1 V107WPROD > Connection Keep-Alive > Proxy-Connection Keep-Alive > Content-Length 2678 > Age 1299 > Date Tue, 11 Jan 2011 14:41:36 GMT > Content-Type image/jpeg > Etag "a76-49992a41d1b5d" > Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5 > Last-Modified Tue, 11 Jan 2011 14:10:04 GMT > X-Cacheable 1800.004 > X-Varnish 832397538 826879249 > X-Varnish-Cache HIT Varnish (21056) > > > When TTL expires (1800s) the object is no longer been cached: > > Via 1.1 varnish, 1.1 V107WPROD > Connection Keep-Alive > Proxy-Connection Keep-Alive > Content-Length 2678 > Age 0 > Date Tue, 11 Jan 2011 14:58:03 GMT > Content-Type image/jpeg > Etag "a76-499933333a882" > Server Apache/2.2.15 (Unix) mod_fcgid/2.3.5 > Last-Modified Tue, 11 Jan 2011 14:50:05 GMT > X-Cacheable 1800.002 > X-Varnish 836621253 > X-Varnish-Cache MISS Varnish > > > 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 )". > > Thank you very much, > Roberto. > > _______________________________________________ > varnish-misc mailing list > [email protected] > http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
