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|.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:

@vcl_recv: 

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

 

@vcl_hash: 

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?

 

 

Reagards.

 

_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to