Commit 20396aa7 authored by Lasse Karstensen's avatar Lasse Karstensen Committed by Tollef Fog Heen

Include device class when hashing

parent 527376f6
......@@ -228,6 +228,11 @@ special needs in VCL, you can use the X-UA-Device header like this::
set req.backend = mobile;
}
}
sub vcl_hash {
if (req.http.X-UA-Device) {
hash_data(req.http.X-UA-Device);
}
}
Redirecting mobile clients
--------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment