MCPcopy
hub / github.com/django/django / _if_unmodified_since_passes

Function _if_unmodified_since_passes

django/utils/cache.py:236–241  ·  view source on GitHub ↗

Test the If-Unmodified-Since comparison as defined in RFC 9110 Section 13.1.4.

(last_modified, if_unmodified_since)

Source from the content-addressed store, hash-verified

234
235
236def _if_unmodified_since_passes(last_modified, if_unmodified_since):
237 """
238 Test the If-Unmodified-Since comparison as defined in RFC 9110 Section
239 13.1.4.
240 """
241 return last_modified and last_modified <= if_unmodified_since
242
243
244def _if_none_match_passes(target_etag, etags):

Callers 1

get_conditional_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected