perbu at linpro.no
Thu Nov 27 11:22:16 CET 2008
> My question is, how can I organise the cache to have the most cache
> hits, given that there are effectively two versions of each page - one
> for logged in users, and one for anonymous users.
ESI has already been pointed out as the ideal way of handling this. You
might also consider issuing a "Vary: $USER" header so Varnish will keep
a copy for each user (this might bloat your cache, be careful) or set a
custom header for logged inn users (X-foo: logged in as bar) and then
pick this header up in vcl_recv and do a "pass" on the relevant request.
Per Buer - Leder Infrastruktur og Drift - Redpill Linpro
Telefon: 21 54 41 21 - Mobil: 958 39 117
http://linpro.no/ | http://redpill.se/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the varnish-misc