Opened 3 years ago

Closed 2 years ago

#22461 closed New feature (fixed)

support for if-unmodified-since in the condition decorator

Reported by: tanner Owned by: nobody
Component: HTTP handling Version: master
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 tanner)

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 (6)

comment:2 Changed 3 years ago by tanner

Version: 1.6master

comment:3 Changed 3 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:4 Changed 2 years ago by Tim Graham

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 Changed 2 years ago by tanner

Description: modified (diff)
Needs documentation: unset
Summary: condition decorator: support fo if-unmodified-since and updating etagssupport for if-unmodified-since in the condition decorator

comment:6 Changed 2 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In b27db97b236569d059fa824c3078e06adf8b4fae:

Fixed #22461 -- Added if-unmodified-since support to the condition decorator.

Note: See TracTickets for help on using tickets.
Back to Top