[Varnish] #205: Better Vary handling

Varnish varnish-bugs at projects.linpro.no
Wed Feb 13 17:12:07 CET 2008


#205: Better Vary handling
-------------------------+--------------------------------------------------
 Reporter:  des          |       Owner:  phk  
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  varnishd     |     Version:  trunk
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------
 From conversations on IRC, I am under the impression that there are
 backends that support content negotiation but do not emit a {{{Vary}}}
 header unless the request contains {{{Accept}}} headers.

 It may be appropriate to send no-op {{{Accept}}} headers to trick the
 backend into sending us the {{{Vary}}} header.  The following should be
 sufficient for most cases:

 {{{
 Accept: */*
 Accept-Language: *
 Accept-Charset: *
 Accept-Encoding: identity
 }}}

 Note that {{{Accept-Encoding}}} can ''not'' be set to {{{*}}}, as the
 backend might then send back a compressed response which the client would
 be unable to process.

 This can of course be implemented in VCL.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/205>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list