Django

Code

Ticket #4763: cache.diff

File cache.diff, 0.7 kB (added by Simon G. <dev@simon.net.nz>, 1 year ago)
  • django_src/docs/cache.txt

    old new  
    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. 
    547547 
    548548Put the ``CacheMiddleware`` after any middlewares that might add something to 
    549549the ``Vary`` header. The following middlewares do so: