[Varnish] #940: ETag for gzip'd variant identical to ETag of ungzipped variant.

Varnish varnish-bugs at varnish-cache.org
Mon Jun 20 21:30:39 CEST 2011


#940: ETag for gzip'd variant identical to ETag of ungzipped variant.
-------------------+--------------------------------------------------------
 Reporter:  david  |        Type:  defect  
   Status:  new    |    Priority:  high    
Milestone:         |   Component:  build   
  Version:  3.0.0  |    Severity:  critical
 Keywords:         |  
-------------------+--------------------------------------------------------

Comment(by david):

 Hi phk,

 Thanks for the ideas. Changing the etag for gzipped variants in
 vcl_deliver was the first thing I tried. It neutered my hit ratio because
 all of the if-modified-since and if-none-match headers started to not
 work.

 My thought, of how you can fix this in Varnish is to store a second etag
 header for the gunzipped copy - Varnish will probably need to fabricate
 this tag, perhaps just adding something like "nogz" to the etag you have
 stored now would be sufficient. The problem comes in how to look it up
 when you get one of those if-none-match headers. Good luck.

 Thanks again,
 -david

-- 
Ticket URL: <http://varnish-cache.org/trac/ticket/940#comment:2>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list