﻿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
5047	max-age set by cache_page is overwritten by cache_middleware	Tomáš Kopeček	Jacob	When setting 'max-age' by ''@cache_page'' (more generally by ''patch_response_headers'') is later overwritten by cache_middleware. In the documentation (http://www.djangoproject.com/documentation/cache/#controlling-cache-using-other-headers) is said that it should work. The problem is in order of calling function. Decorator is called ''before'' middleware's ''process_response''. Simple patch against r5783 is attached, but it probably needs some design decision and folllowing rewrite.		closed	Core (Cache system)	dev		fixed	cache_control, cache, middleware, sprintsept14	permonik@…	Ready for checkin	1	0	0	0	0	0
