send reason along with backend request

Hugo Cisneiros (Eitch) hugo.cisneiros at gmail.com
Wed Dec 14 13:46:51 CET 2011


On Sun, Dec 11, 2011 at 11:47 PM, AD <straightflush at gmail.com> wrote:
> you should be able to add a req.http.header in your vcl_fetch.  I dont
> believe vcl_fetch gets called unless you are in a cache_miss and you need to
> contact the backend.

In vcl_fetch varnish already contacted the backend and fetched the
answer. This is why beresp.* variable is already there. You can add
headers before the backend request on vcl_miss or vcl_hit (in your
case, vcl_miss).

-- 
[]'s
Hugo
www.devin.com.br




More information about the varnish-misc mailing list