Strange different behavior

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Jan 15 13:52:19 CET 2010


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