Optimal way to handle Vary on User-Agent
pinakee at waltzz.com
Fri Oct 13 12:19:58 UTC 2017
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:
2. Mobile (doesn't matter whether android, iOS or windows)
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:
1. Normalize header User-Agent to only the 3 types mentioned above OR
2. Add a new normalized HTTP header for the above 3 types. Our backed
then Vary on the new HTTP header.
Would appreciate if any solution could be provided for the above..
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc