﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13217	LocaleMiddleware  breaks caching.  (Vary: Cookie)	harm	nobody	"Enabling {{{ django.middleware.locale.LocaleMiddleware }}}  causes that django adds a 'Vary: Cookie' header to every reponse.

The net effects of responses with Vary: Cookie, is that they are not properly cached by reverse proxies, and worse, never cached by end browsers. (Browser may cache requests with the same cookie, but in reality NO browser is implemented like that,  

And this happens for _every_ response

Is there a way to achieve this without always touching the session ? So that we just get a {{{ Vary : Accept-Language }}}

similar tickets with other middleware #6552"	Uncategorized	closed	Uncategorized	1.2-beta	Normal	fixed	session accessed vary cookie		Unreviewed	0	0	0	0	0	0
