Ticket #5284: never_cache_doc.2.diff
File never_cache_doc.2.diff, 766 bytes (added by , 17 years ago) |
---|
-
docs/cache.txt
524 524 ``max_age`` in a ``cache_control`` decorator, the decorator will take 525 525 precedence, and the header values will be merged correctly.) 526 526 527 If you want to use headers to disable caching altogether, 528 ``django.views.decorators.never_cache`` is a view decorator that adds 529 headers to ensure the response won't be cached by browsers or other caches. Example:: 530 531 from django.views.decorators.cache import never_cache 532 @never_cache 533 def myview(request): 534 ... 535 527 536 .. _`Cache-Control spec`: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 528 537 529 538 Other optimizations