def _match_etag(etag, if_none_match_header):
    """Check to see if an etag matches."""
    for if_none_match_ele in if_none_match_header.split(","):
        if if_none_match_ele.strip() == etag:
            return True
    return False