I currently run a website behind a Varnish server, It contains a few browser conditions for Internet Explorer 6. Unfortunately Varnish is caching the first version it serves without taking into account the conditions. Is there any way I can configure it to have a different cache for IE6 users ?
Thanks
I don't think the logic should be implemented in VCL.
If the origin servers are serving up different content on the same URL based on the user agent, then it should be issuing a suitable header - e.g. Vary: Accept-Encoding, User-Agent
If you're saying that the origin is providing this and Varnish is ignoring it then its a bug in varnish. If the origin is not serving up such a header then its a bug in the code running on the origin server.
I believe so; probably the best thing to do would be to forward the request headers to the web server, which will generate a separate version for each one.