Changeset 6575
- Timestamp:
- 10/21/07 07:12:45 (1 year ago)
- Files:
-
- django/trunk/docs/cache.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/cache.txt
r6572 r6575 229 229 ) 230 230 231 (The order of ``MIDDLEWARE_CLASSES`` matters. See "Order of MIDDLEWARE_CLASSES"231 (The order of ``MIDDLEWARE_CLASSES`` matters. See `Order of MIDDLEWARE_CLASSES`_ 232 232 below.) 233 233 … … 534 534 precedence, and the header values will be merged correctly.) 535 535 536 If you want to use headers to disable caching altogether, 536 If you want to use headers to disable caching altogether, 537 537 ``django.views.decorators.never_cache`` is a view decorator that adds 538 538 headers to ensure the response won't be cached by browsers or other caches. Example:: … … 566 566 adds something to the ``Vary`` response header when it can. 567 567 568 Put the ``CacheMiddleware`` after any middlewares that might add something to 569 the ``Vary`` header. The following middlewares do so: 568 Put the ``CacheMiddleware`` *before* any other middleware that might add 569 something to the ``Vary`` header (response middleware is applied in reverse 570 order). The following middleware modules do so: 570 571 571 572 * ``SessionMiddleware`` adds ``Cookie`` 572 573 * ``GZipMiddleware`` adds ``Accept-Encoding`` 574 * ``LocaleMiddleware`` adds ``Accept-Language`` 575
