[Varnish] #1797: Content-Type/Content-Length should miss on 304 requests

Varnish varnish-bugs at varnish-cache.org
Tue Oct 6 11:46:16 CEST 2015


#1797: Content-Type/Content-Length should miss on 304 requests
------------------------+----------------------
 Reporter:  shakalandy  |       Type:  defect
   Status:  new         |   Priority:  normal
Milestone:              |  Component:  varnishd
  Version:  4.0.3       |   Severity:  normal
 Keywords:              |
------------------------+----------------------
 As far as i understand RFC 2616 correctly the 304 response must not
 include other entity headers such as Content-Type/Content-Length
 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5).

 In our installation with merely default vcl in vcl_deliver varnish
 includes both Content-Type/Content-Length in a 304 response.
 This may confuse other upstream caches and may force an unnecessary
 revalidation of an object.

 maybe related to #529 ?

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1797>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list