req.hash and fetch

Henry Paulissen h.paulissen at
Fri Nov 27 15:53:22 CET 2009

Hey all,



One of my website has more only the request url who are unique. Content
inside the website depends on the url you request (.com||etc) and the
browser language. So at first request we set a cookie with the language
preferences (so we don't have to check it every time).


Inside varnish I made the following:


set req.http.X-match = regsub(req.http.Cookie,
"^.*(langpref=[a-z]+_[a-z]+).*$", "\1");



set req.hash += req.url;

set req.hash += req.http.X-match;



Does varnish need more settings (in vcl_fetch?) to store the parsed backend
request with the proper hash key?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list