﻿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
32212	Vary header changed by SessionMiddleware	y p	nobody	"To specify the cache mode, i use the view decorator like this:
{{{
@vary_on_headers('Accept', 'Accept-Language', 'Origin', 'User-Agent')
@cache_control(public=True, max_age=3600)
}}}
But after tracing, I found that SessionMiddleware modified the Vary Header and added a Cookie, as follows:
{{{
if accessed:
    patch_vary_headers(response, ('Cookie',))
}}}
Causes cache invalidation after user login again.
I have specified the cache as public, in which case the cache scheme should have nothing to do with cookies."	Uncategorized	new	Uncategorized	2.2	Normal		cache Vary SessionMiddleware		Unreviewed	0	0	0	0	1	0
