Attention
You are looking at outdated documentation for version 2.x. A newer version is available.
wsgidav.util.evaluateHTTPConditionals¶
-
wsgidav.util.
evaluateHTTPConditionals
(davres, lastmodified, entitytag, environ)[source]¶ Handle ‘If-…:’ headers (but not ‘If:’ header).
- If-Match
- @see: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.24 Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it. If-Match: “737060cd8c284d8af7ad3082f209582d”
- If-Modified-Since
- @see: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.25 Allows a 304 Not Modified to be returned if content is unchanged If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
- If-None-Match
- @see: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag If-None-Match: “737060cd8c284d8af7ad3082f209582d”
- If-Unmodified-Since
- @see: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.28 Only send the response if the entity has not been modified since a specific time.