Changes between Initial Version and Version 1 of Ticket #19705


Ignore:
Timestamp:
Feb 1, 2013, 3:52:48 PM (11 years ago)
Author:
Aymeric Augustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19705

    • Property Triage Stage UnreviewedAccepted
    • Property Summary CommonMiddleware handles If-Modified-Since incorrectlyCommonMiddleware handles If-None-Match incorrectly
  • Ticket #19705 – Description

    initial v1  
    11Two middleware check ETags for unmodified responses: `CommonMiddleware` and `ConditionalGetMiddleware` and they do it inconsistently.
    22
    3 If the response's ETag matches the request's If-Modified-Since:
     3If the response's ETag matches the request's If-None-Match:
    44- `ConditionalGetMiddleware` changes the response code to 304, preserving all headers; the content gets removed later on
    55- `CommonMiddleware` creates a new `HttpResponseNotModified` without content and simply restores the cookies.
Back to Top