send reason along with backend request

Arjen Schat arjen at thenextweb.com
Wed Dec 14 15:08:58 CET 2011


Yep, that is too late in the process.

Is the reason for the call to vcl_miss exposed? This would allow vcl_miss to set an extra bereq. Or is there a way to see which stats counters are updated by lookup?

Thank you,
Arjen

On 14 dec. 2011, at 13:46, Hugo Cisneiros (Eitch) wrote:

> 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
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc





More information about the varnish-misc mailing list