diff options
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, |
