From cd248ef6b5eece32b5b6780d5c738a6a03f6fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 20 Oct 2012 21:00:51 +0200 Subject: [PATCH] Disable cache in add comment --- views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/views.py b/views.py index ee14f8e..357a7e6 100644 --- a/views.py +++ b/views.py @@ -598,6 +598,7 @@ def add_comment(request, post_id, parent_id): connection.close() response = HttpResponseRedirect(ref) + response['Cache-Control'] = 'no-cache' response.set_cookie('author', request.POST['author'], domain=blog.name, secure=True, httponly=False); if request.POST['email'] != '':