diff options
| author | Kevin Christopher Henry <k@severian.com> | 2016-08-11 07:05:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-11 16:48:43 -0400 |
| commit | 80e0ff7f91ac2db0f89ac58cc4ffe7f38aea2a38 (patch) | |
| tree | c5a1f3324b8185e95cc93d4bf0473f0d8fbab949 /docs/topics/http | |
| parent | 6977eaf8443bea1f1f965f2931b082233279e3f9 (diff) | |
[1.10.x] Documented the cache_control() decorator.
Backport of b785927b442d1e4b59f2afa40729a4ca1a7ed3ab from master
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/decorators.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt index 4687188af0..5b99cc18cd 100644 --- a/docs/topics/http/decorators.txt +++ b/docs/topics/http/decorators.txt @@ -106,6 +106,13 @@ Caching The decorators in :mod:`django.views.decorators.cache` control server and client-side caching. +.. function:: cache_control(**kwargs) + + This decorator patches the response's ``Cache-Control`` header by adding + all of the keyword arguments to it. See + :func:`~django.utils.cache.patch_cache_control` for the details of the + transformation. + .. function:: never_cache(view_func) This decorator adds a ``Cache-Control: max-age=0, no-cache, no-store, |
