summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-11-12 20:30:03 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-11-12 20:30:03 +0000
commitba0734af9c54d1ace09285f6823cb8e4624acf99 (patch)
tree7438867ad1294077c68cb41b3afbaa2ec17b24b3 /docs
parentefe4e2e5178d2d6e6f710c3edee0d07cd6a60ab5 (diff)
Fix #17119: Update cache doc to match current implementation, which does (since r15705) cache pages with GET parameters. Thanks Vanni, poirier, and calvinspealman.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/cache.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
index 4729cab60d..a3aac74b76 100644
--- a/docs/topics/cache.txt
+++ b/docs/topics/cache.txt
@@ -456,8 +456,10 @@ Then, add the following required settings to your Django settings file:
the site, or some other string that is unique to this Django instance, to
prevent key collisions. Use an empty string if you don't care.
-The cache middleware caches every page that doesn't have GET or POST
-parameters. Optionally, if the :setting:`CACHE_MIDDLEWARE_ANONYMOUS_ONLY`
+The cache middleware caches GET and HEAD responses with status 200, where the request
+and response headers allow. Responses to requests for the same URL with different
+query parameters are considered to be unique pages and are cached separately.
+Optionally, if the :setting:`CACHE_MIDDLEWARE_ANONYMOUS_ONLY`
setting is ``True``, only anonymous requests (i.e., not those made by a
logged-in user) will be cached. This is a simple and effective way of disabling
caching for any user-specific pages (including Django's admin interface). Note