-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vary Accept-Language being added #4
Comments
Hi Matthew, thanks for reporting! So the behaviour must be the following: if if Am i right? |
Yep that's right. Thanks. |
Uploaded to pypi v0.4.3 |
It would seem the point of using language urls is that you don't vary accept-languages. But if you request the default language that doesn't have a url prefix it adds the vary accept-language.
The method is:
Probably should put vary Accept-Language before the redirect (otherwise the redirect can be cached). Basically if the response is different based on the language, we need the header, if it isn't we don't. Here the redirect is different based on the request languages. But when we deliver normal page content, the pages content is not different based on language so we dont want accept-language (which will make it cache less).
The text was updated successfully, but these errors were encountered: