<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>We are using Varnish 4.1.8 to cache and speed up our web
delivery. Our page content varies based on following 3 device
types:</p>
<ol>
<li>Desktop</li>
<li>Mobile (doesn't matter whether android, iOS or windows)</li>
<li>Tablet</li>
</ol>
<p>As universally known, varying on User-Agent is quite bad for
caching as there would be thousands of UA. Hence, would like to
know a solution based on following if possible in Varnish:</p>
<ol>
<li>Normalize header User-Agent to only the 3 types mentioned
above OR</li>
<li>Add a new normalized HTTP header for the above 3 types. Our
backed then Vary on the new HTTP header.</li>
</ol>
<p>Would appreciate if any solution could be provided for the
above..</p>
<p>Thanks,</p>
<p>Pinakee<br>
</p>
</body>
</html>