Re: Caching responses with "Vary" responses

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 24 Jul 2012 08:35:08 -0600

On 07/24/2012 02:09 AM, Henrik Nordström wrote:
> tis 2012-07-24 klockan 11:05 +1200 skrev Amos Jeffries:
>
>> For the Vary meta its only a few hundred bytes normally as Alexander
>> noted (~230 in his test).
>>
>> However some brilliant sites decide to use Cookie or User-Agent as one
>> of the vary components. This can bloat the entry up to a worst-case of
>> more than 64KB on some occasions. Other proxies and Apache allow ~10KB
>> Cookie to be set so it is more the browser or scripted tools which
>> generate these nasties.
>
> That do not add to the Vary meta, but do add to the keying material.
> Vary meta should only be the HTTP header names listen in Vary or patched
> by Squid to work around broken servers.
>
> Or is the shm cache using another keying method requiring the actual
> varying header data?

The shared memory cache does not have any key calculation code. It uses
the entry key supplied by Store.

HTH,

Alex.
Received on Tue Jul 24 2012 - 14:35:37 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 24 2012 - 12:00:04 MDT