﻿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
612	[patch] decorator for managing cache-control header	hugo	Jacob	"The attached patch is a decorator that allows management of the Cache-Control header for django views. The idea is to tag all views that contain sensible data with:

{{{
#!python
@cache_control(private=True)
def private_view(request):
   ....
}}}

That way a Cache-Control: private header will be generated. This decorator merges the cache-control value with already set values and the patch changes the caching utilities to use this merging technique, too.

I patched the documentation to contain a short chapter on the cache_control decorator, too.
"	enhancement	closed	Core (Cache system)		normal	fixed			Unreviewed	1	0	0	0	0	0
