werkzeug.is_resource_modified¶
-
werkzeug.
is_resource_modified
(environ, etag=None, data=None, last_modified=None)[source]¶ Convenience method for conditional requests.
Parameters: - environ – the WSGI environment of the request to be checked.
- etag – the etag for the response for comparison.
- data – or alternatively the data of the response to automatically
generate an etag using
generate_etag()
. - last_modified – an optional date of the last modification.
Returns: True if the resource was modified, otherwise False.