KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I add a response header to a Django response? I have: response = HttpResponse() response['Cache-Control'] = 'no-cache' return render(request, "template.html", {}) # Alternately using render_to_response # return render_to_response("template.html", {})
Tags (comma-separated)
Save Edits
Cancel