﻿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
32335	Cache Control decorator should not cache 500 status code responses	Varun Patil		"cache control decorator in 'django.views.decorators.cache' caches ""bad"" responses. 

If something goes wrong in my view and it returns a 500 response, I dont want that to be cached.
According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#targets_of_caching_operations , only 200, 301, 404, 206 are generally cached.

This can be quickly fixed in 'django.utils.cache.patch_cache_control' by checking if the response code is among the ones specified above. Or optionally, let the user decide which status codes to be cached/not cached"	Bug	new	Error reporting	dev	Normal		cache control bad response decorator		Unreviewed	1	0	0	0	1	0
