Ticket #4763: cache.diff

File cache.diff, 700 bytes (added by Simon G. <dev@…>, 16 years ago)
  • django_src/docs/cache.txt

    543543If you use ``CacheMiddleware``, it's important to put it in the right place
    544544within the ``MIDDLEWARE_CLASSES`` setting, because the cache middleware needs
    545545to know which headers by which to vary the cache storage. Middleware always
    546 adds something the ``Vary`` response header when it can.
     546adds something to the ``Vary`` response header when it can.
    548548Put the ``CacheMiddleware`` after any middlewares that might add something to
    549549the ``Vary`` header. The following middlewares do so:
Back to Top