#19705: CommonMiddleware handles If-None-Match incorrectly
-------------------------------+------------------------------------
Reporter: aaugustin | Owner: syphar
Type: Bug | Status: assigned
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by marfire):
Another solution to the gzip problem (that is, that we never match a
gzipped `ETag` because we modify it on the way out but not on the way in)
would be to have `GZipMiddleware` change the `ETag` to a weak `ETag`. That
would be simple, consistent with the specification, and well-precedented:
* nginx does this ([http://nginx.org/en/CHANGES as of version 1.7.3]) when
it gzips responses with an `ETag`
* [https://github.com/rails/rails/pull/17573 Rails] and
[https://github.com/rack/rack/issues/681 Rake] have recently switched to
using weak `ETags`
--
Ticket URL: <https://code.djangoproject.com/ticket/19705#comment:15>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.8be12df2783bf2c2bc921320d34e9d3c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.