Permalink
Browse files

Include device class when hashing

  • Loading branch information...
1 parent 527376f commit 20396aa7f50ca3c34ad601267b49828ebcc8bf5c Lasse Karstensen committed with Tollef Fog Heen Mar 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 doc/sphinx/tutorial/devicedetection.rst
@@ -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
--------------------------

0 comments on commit 20396aa

Please sign in to comment.