code: def check_if_modified_since(self, dt, etag=None):
          
          dt = dt.replace(microsecond=0)
          if request.if_modified_since and dt <= request.if_modified_since:
              raise SameContentException(etag, last_modified=dt)
docs: Validate If-Modified-Since with current request conditions.