import re


def parse_x_cache(_):
    """Parse the Akamai X-Cache header, returning (result, host)"""
    regex_out = re.match(r"(\w+) from ([\w-]+)", _)
    return regex_out.groups() if regex_out else (None, None)