However, according to [[https://tools.ietf.org/html/rfc7234|RFC 7234]],
"the ''no-store'' response directive indicates that a cache MUST NOT store
any part of either the immediate request or response." Since the response
must not be stored, no compliant cache will be able to issue a conditional
request, so computing the Etag is wasted effort. (Note that this behavior
is different from ''no-cache''.)
The current behavior doesn't do any real harm, but we might as well
improve the performance of such requests given that the change should be
relatively easy (simply checking the header value).
--
Ticket URL: <https://code.djangoproject.com/ticket/26765>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* component: Core (Cache system) => HTTP handling
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26765#comment:1>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
Reviewed & notes left on the PR:
https://github.com/django/django/pull/6810
--
Ticket URL: <https://code.djangoproject.com/ticket/26765#comment:2>
* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted
Comment:
Added comments on the PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/26765#comment:3>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26765#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"20d39325ca1da57a709f3ba38299dc7b0fc4bdfb" 20d3932]:
{{{
#!CommitTicketReference repository=""
revision="20d39325ca1da57a709f3ba38299dc7b0fc4bdfb"
Fixed #26765 -- Made CommonMiddleware no longer set an ETag when response
has Cache-Control: no-store.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26765#comment:5>