﻿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
4071	cache_page decorator sets wrong Cache-Control header	Ionut Ciocirlan (xlotlu) <upstaked@…>	Tomáš Kopeček	"If trying to set cache_page with CUSTOM_SECONDS, the CACHE_MIDDLEWARE_SECONDS Cache-Control header will look like:(notice the underscore)
Cache-Control: max_age=CUSTOM_SECONDS, max-age=CACHE_MIDDLEWARE_SECONDS

The first problem is that patch_cache_control changes [http://code.djangoproject.com/browser/django/trunk/django/utils/cache.py#L51 existing values] to underscores, but never changes them back, and this is what the patch addresses.

The second problem is that even with this fixed, the max-age will still be set (appended to the existing value) to the default CACHE_MIDDLEWARE_SECONDS, probably later on by the cache middleware."		closed	Core (Cache system)	dev		fixed	sprintsept14	permonik@…	Ready for checkin	1	0	0	0	0	0
