Varnish4 and variable access?
Andreas Plesner
apj at mutt.dk
Tue Aug 4 08:02:55 CEST 2015
On Mon, Aug 03, 2015 at 01:28:56PM -0400, Jason Price wrote:
>
> 1: The Varnish Book (for v3) has this cool table:
> https://www.varnish-software.com/book/3/VCL_functions.html which indicates
> which variables are accessible in what ways in whatever subroutine you find
> yourself. Is there an updated version for varnish 4? I could
Don't know about the book, but it's not available in table form in the docs,
however man vcl has information on which variables are available where.
> 2: The varnish 3 to 4 guide says that "obj is now read-only. obj.last_use
> has been retired." I'm doing some hacking of error messages in the new
> vcl_synth... what variable should I hack on there instead? Previously it
> was obj.* (specifically obj.status and obj.response). Is it now resp.* ?
Yes. obj.* is the cached object, resp.* is the response.
--
Andreas
More information about the varnish-misc
mailing list