Opened 11 years ago
Last modified 10 years ago
#22461 closed New feature
support for if-unmodified-since in the condition decorator — at Version 5
Reported by: | tanner | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I have implemented support for the If-Unmodified-Since header
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.28
in the condition decorator
PR: https://github.com/django/django/pull/3764
UPDATE: In the previous version of this PR I had added updating of etags for write operations. However, the RFCs are quite confusing and the new HTTPs RFC 7231,7232,7234 did not improve the situation. Therefore I've removed those changes for now and would submit them as an independent patch.
(OLD: added an parameter to support updating of the etags for write operations http://tools.ietf.org/id/draft-reschke-http-etag-on-write-09.txt)
tests are included
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Version: | 1.6 → master |
---|
comment:3 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 10 years ago
Needs documentation: | set |
---|
I haven't reviewed the technical details of this patch, but it's missing documentation. Please uncheck "Needs documentation" when you update it, thanks.
comment:5 by , 10 years ago
Description: | modified (diff) |
---|---|
Needs documentation: | unset |
Summary: | condition decorator: support fo if-unmodified-since and updating etags → support for if-unmodified-since in the condition decorator |
pull request https://github.com/django/django/pull/2573