Disable cache after add_comment

This commit is contained in:
Grégory Soutadé 2012-10-25 18:36:10 +02:00
parent 8b015c7e85
commit 426f4e8c7a

View File

@ -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'] != '':