Miles skrev:

> 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/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to