Drupal comes with a language negociation (D6: admin/settings/language/configure). One of the options is "path prefix with language fallback": If a suitable prefix is not identified, the display language is determined by the user's language preferences from the My Account page, or by the browser's language settings. The latter means it will look at Accept-Language in the http request and return the preferred language. I would like this still to work, together with Varnish cache.
There is an interesting solution described in: My Opera front page caching and Varnish hacking.
Did anyone implemented something similar before?
Currently, I have a quick work around in place, which doesn't let Varnish cache the front page (/etc/varnish/default.vcl):
if (req.url == "/") {
return (pass);
}
Obviously, this solution is far from optimal.