req.hash and fetch
h.paulissen at qbell.nl
Fri Nov 27 15:53:22 CET 2009
One of my website has more only the request url who are unique. Content
inside the website depends on the url you request (.com|.co.uk|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,
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...
More information about the varnish-misc