Small style fixes to docs from [3395]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-07-20 15:45:16 +00:00
parent 3e95ef5374
commit 6ab20c5475
2 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ class CacheMiddleware(object):
Only parameter-less GET or HEAD-requests with status code 200 are cached. Only parameter-less GET or HEAD-requests with status code 200 are cached.
If CACHE_MIDDLEWARE_ANONYMOUS_ONLY is set to True, only anonymous requests If CACHE_MIDDLEWARE_ANONYMOUS_ONLY is set to True, only anonymous requests
(i.e. those node made by a logged in user) will be cached. This is a (i.e., those node made by a logged-in user) will be cached. This is a
simple and effective way of avoiding the caching of the Django admin (and simple and effective way of avoiding the caching of the Django admin (and
any other user-specific content). any other user-specific content).

View File

@ -230,13 +230,13 @@ Then, add the following required settings to your Django settings file:
collisions. Use an empty string if you don't care. collisions. Use an empty string if you don't care.
The cache middleware caches every page that doesn't have GET or POST The cache middleware caches every page that doesn't have GET or POST
parameters. Optionally, If the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting is parameters. Optionally, if the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting is
``True``, only anonymous requests (i.e. those node made by a logged in user) ``True``, only anonymous requests (i.e., those node made by a logged-in user)
will be cached. This is a simple and effective way of disabling caching on any will be cached. This is a simple and effective way of disabling caching for any
user-specific content ( include Django's admin interface). user-specific pages (include Django's admin interface).
Additionally, ``CacheMiddleware`` automatically sets a few headers Additionally, ``CacheMiddleware`` automatically sets a few headers in each
in each ``HttpResponse``: ``HttpResponse``:
* Sets the ``Last-Modified`` header to the current date/time when a fresh * Sets the ``Last-Modified`` header to the current date/time when a fresh
(uncached) version of the page is requested. (uncached) version of the page is requested.