summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authormgaligniana <marcelogaligniana@gmail.com>2021-12-10 08:26:32 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-12-13 15:34:19 +0100
commit669dcefc04837c35fc2ec5ce906d84397005965d (patch)
tree70fc26fd7c4720eb06fb7e0b823c8c606d7f7e8c /docs/topics/http
parente61abab6e0d57c333289790496f358bb8ee4c565 (diff)
Fixed #33338 -- Doc'd that never_cache() decorator set Expires header.
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/decorators.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt
index cb6fa9cdac..5165765eea 100644
--- a/docs/topics/http/decorators.txt
+++ b/docs/topics/http/decorators.txt
@@ -118,10 +118,14 @@ client-side caching.
.. function:: never_cache(view_func)
+ This decorator adds an ``Expires`` header to the current date/time.
+
This decorator adds a ``Cache-Control: max-age=0, no-cache, no-store,
must-revalidate, private`` header to a response to indicate that a page
should never be cached.
+ Each header is only added if it isn't already set.
+
.. module:: django.views.decorators.common
Common