#13336: Document example for setting HttpResponse headers is misleading because it users wrong cache header -----------------------------------+---------------------------------------- Reporter: dnjuls | Owner: nobody Status: new | Milestone: Component: Documentation | Version: SVN Keywords: cache reponse headers | Stage: Unreviewed Has_patch: 0 | -----------------------------------+---------------------------------------- In the HttpReponse documentation (http://docs.djangoproject.com/en/dev/ref /request-response/#django.http.HttpResponse) exists and example for setting headers in for the HttpResponse object.
The header used in the example response['Pragma'] = 'no-cache' This header is intended for use in requests, not responses. See http://en.wikipedia.org/wiki/List_of_HTTP_headers#Avoiding_caching Better use Cache-Control: no-cache -- Ticket URL: <http://code.djangoproject.com/ticket/13336> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.