Detect device using Varnish I have some difficulties finding a correct code (VCL) to configure varnish to detect if the device is a tablet or a mobile or a desktop. 

Here is the best module version found today, but still not detecting tablet if not an iPad.
This is very tricky but see this helpful link.

Varnish device detection and redirect to mobile site