Change: Clearing Cache

created on Dec. 17, 2012, 7:04 p.m. by Hevok & updated on Dec. 17, 2012, 7:04 p.m. by Hevok

For example to avoid that after logout the back button from the browser redirects to the previous page (it should redirect to the login page), the browser cache can be cleared by the following:

.. sourcecode:: python

...
from django.views.decorators.cache import cache_control
...
@cache_control(no_cache=True, must_revalidate=True, no_store=True):
def view(request):
    ...
delete.jpg

Categories: Tutorial, News, reST
Parent: Web Framework

Comment: Created entry.

See entry | Admin

Comment on This Data Unit