﻿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
32844	Cached pages can crash on 3.1 to 3.2 upgrade	Iuri de Silvio	nobody	"My cached page from 3.1 crashes because I have a middleware setting a header.

Because cache_page do a pickle caching, we have a 3.1 JsonResponse running on 3.2, without the new headers feature.

{{{
AttributeError: 'JsonResponse' object has no attribute 'headers'
  File ""django/core/handlers/exception.py"", line 47, in inner
    response = get_response(request)
  File ""commons/middleware.py"", line 44, in __call__
    response['X-Current-Version'] = VERSION
  File ""django/http/response.py"", line 172, in __setitem__
    self.headers[header] = value
}}}

Docs could provide some help about this, the fix should be easy cleaning specific cache or using `CACHE_MIDDLEWARE_KEY_PREFIX`. that is unfortunately broken.

https://code.djangoproject.com/ticket/32841"	Bug	closed	Documentation	3.2	Normal	wontfix			Unreviewed	0	0	0	0	0	0
