Ticket #4943: 4943.patch
File 4943.patch, 1.1 KB (added by , 17 years ago) |
---|
-
docs/cache.txt
228 228 'django.middleware.common.CommonMiddleware', 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 234 234 Then, add the following required settings to your Django settings file: … … 556 556 to know which headers by which to vary the cache storage. Middleware always 557 557 adds something to the ``Vary`` response header when it can. 558 558 559 Put the ``CacheMiddleware`` after any middlewares that might add something to 560 the ``Vary`` header. The following middlewares do so: 559 Put the ``CacheMiddleware`` *before* any other middleware that might add 560 something to the ``Vary`` header (response middleware is applied in reverse 561 order). The following middleware modules do so: 561 562 562 563 * ``SessionMiddleware`` adds ``Cookie`` 563 564 * ``GZipMiddleware`` adds ``Accept-Encoding`` 565 * ``LocaleMiddleware`` adds ``Accept-Language``