Mapping VCL variables to internal variables

Charles Curley charlescurley at
Wed May 21 20:57:14 CEST 2008

I'd like to set a variable in VCL, and then use it in a modification
of Varnish. Having added to req.hash with something like:

sub vcl_hash
if (req.http.Accept-Encoding ~ "gzip") {
set req.hash += "gzip";
} else if (req.http.Accept-Encoding ~ "deflate") {
set req.hash += "deflate";

where do I find that in Varnish itself?



Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the varnish-dev mailing list