[Varnish] #1536: 4.0.1 delivers instead of fetch

Varnish varnish-bugs at varnish-cache.org
Mon Jun 30 13:20:33 CEST 2014


#1536: 4.0.1 delivers instead of fetch
------------------------------+----------------------
 Reporter:  little_butterfly  |       Owner:
     Type:  defect            |      Status:  closed
 Priority:  normal            |   Milestone:  Later
Component:  varnishd          |     Version:  4.0.1
 Severity:  normal            |  Resolution:  invalid
 Keywords:  must-revalidate   |
------------------------------+----------------------
Changes (by martin):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Hi,

 Varnish doesn't take any specific action with regard to must-revalidate
 attributes in the Cache-Control headers. So the behavior you are seeing is
 the expected result, where the default grace (10s) is kicking in to answer
 the client immediately instead of waiting for the backend fetch to
 complete before answering the client.

 You could explicitly set grace to 0s when there's a must-revalidate
 attribute present in your vcl_backend_response method to change this
 behavior (or do return(pass); in vcl_recv for matched URL's).

 Regards,
 Martin Blix Grydeland

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1536#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list