Ticket #13336: 13336.patch

File 13336.patch, 452 bytes (added by Claude Paroz, 14 years ago)

Trivial patch to replace Pragma by Cache-Control

  • docs/ref/request-response.txt

     
    434434To set a header in your response, just treat it like a dictionary::
    435435
    436436    >>> response = HttpResponse()
    437     >>> response['Pragma'] = 'no-cache'
     437    >>> response['Cache-Control'] = 'no-cache'
    438438
    439439.. versionadded:: 1.1
    440440
Back to Top