Strange different behavior

John Norman john at 7fff.com
Fri Jan 15 15:46:59 CET 2010


OK.

But if your application backend really doesn't do anything different
for different user agents, then one should probably remove the
user-agent?

On Fri, Jan 15, 2010 at 7:52 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <b6b8b6b71001150449v40d1b9c3s5b86dbd27cc593ee at mail.gmail.com>, John
> Norman writes:
>>Sorry to be so obtuse:
>>
>>So with the default setup, there will be a cached copy of a page for
>>every single user agent?
>
> Yes, unless you do something about the "Vary: User-Agent" header
> returned from the backend.
>
>>If so, does anyone have a good number of user agents that should be
>>supported for calculating the size of the cache? E.g., if I've guessed
>>64M for my pages, and I imagine that there are 10 user agents (I know
>>it's more) then I'd want to multiply that 64M x 10.
>
> You really need to find out what bit of user-agent your backend
> cares about.  We are talking a multiplication factor of 100-1000 here.
>
> Poul-Henning
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>



More information about the varnish-misc mailing list