Ticket #5284: never_cache_doc.2.diff

File never_cache_doc.2.diff, 766 bytes (added by Fernando Gutierrez, 17 years ago)

Respect the line width.

  • docs/cache.txt

     
    524524``max_age`` in a ``cache_control`` decorator, the decorator will take
    525525precedence, and the header values will be merged correctly.)
    526526
     527If you want to use headers to disable caching altogether,
     528``django.views.decorators.never_cache`` is a view decorator that adds
     529headers 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
    527536.. _`Cache-Control spec`: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
    528537
    529538Other optimizations
Back to Top