Changes between Initial Version and Version 1 of Ticket #19705
- Timestamp:
- Feb 1, 2013, 3:52:48 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19705
- Property Triage Stage Unreviewed → Accepted
- Property Summary CommonMiddleware handles If-Modified-Since incorrectly → CommonMiddleware handles If-None-Match incorrectly
-
Ticket #19705 – Description
initial v1 1 1 Two middleware check ETags for unmodified responses: `CommonMiddleware` and `ConditionalGetMiddleware` and they do it inconsistently. 2 2 3 If the response's ETag matches the request's If- Modified-Since:3 If the response's ETag matches the request's If-None-Match: 4 4 - `ConditionalGetMiddleware` changes the response code to 304, preserving all headers; the content gets removed later on 5 5 - `CommonMiddleware` creates a new `HttpResponseNotModified` without content and simply restores the cookies.