On 10/17/12 4:57 AM, Aryeh Gregor wrote:
In terms of correctness, yes, but that will make them useless as caches. If a moderate number of users with an assortment of browsers are using the same caching proxy, it's entirely possible that no two of them have the same exact User-Agent string. Varying on User-Agent in a heterogeneous browser environment is going to drop your cache hit rate to the point where the cache hurts performance more than it helps.
That depends on whether you simply include the U-A request header in your cache key, no?
But yes, I can accept the argument that caching proxies are just broken and won't change and we need to deal with it.
-Boris
