From 426f4e8c7a8d73b3309d17092e259d166957ad6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 25 Oct 2012 18:36:10 +0200 Subject: [PATCH] Disable cache after add_comment --- views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views.py b/views.py index 20a3b0e..0637aa8 100644 --- a/views.py +++ b/views.py @@ -601,7 +601,8 @@ def add_comment(request, post_id, parent_id): connection.close() response = HttpResponseRedirect(ref) - response['Cache-Control'] = 'no-cache' + response['Cache-Control'] = 'no-store, no-cache, must-revalidate' + response['Expires'] = 'Thu, 01 Jan 1970 00:00:00 GMT' response.set_cookie('author', request.POST['author'], domain=blog.name, secure=True, httponly=False); if request.POST['email'] != '':