summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-07-20 15:45:16 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-07-20 15:45:16 +0000
commit6ab20c547563a67d16779a921acd195167d454ea (patch)
tree5c8676f0d04042631029ec5fc4792c5b0deef809
parent3e95ef5374dd3d468d6cb27a1ce6fd42334abb0d (diff)
Small style fixes to docs from [3395]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/middleware/cache.py2
-rw-r--r--docs/cache.txt12
2 files changed, 7 insertions, 7 deletions
diff --git a/django/middleware/cache.py b/django/middleware/cache.py
index 6f995ba0b1..0d41713804 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -11,7 +11,7 @@ class CacheMiddleware(object):
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
- (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
any other user-specific content).
diff --git a/docs/cache.txt b/docs/cache.txt
index 5efa2649ae..50cd3dcb0c 100644
--- a/docs/cache.txt
+++ b/docs/cache.txt
@@ -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.
The cache middleware caches every page that doesn't have GET or POST
-parameters. Optionally, If the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting is
-``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
-user-specific content ( include Django's admin interface).
+parameters. Optionally, if the ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting is
+``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 for any
+user-specific pages (include Django's admin interface).
-Additionally, ``CacheMiddleware`` automatically sets a few headers
-in each ``HttpResponse``:
+Additionally, ``CacheMiddleware`` automatically sets a few headers in each
+``HttpResponse``:
* Sets the ``Last-Modified`` header to the current date/time when a fresh
(uncached) version of the page is requested.