Disable cache after add_comment
This commit is contained in:
parent
8b015c7e85
commit
426f4e8c7a
3
views.py
3
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'] != '':
|
||||
|
|
Loading…
Reference in New Issue
Block a user