def preserve_location_hint(config, response):
    """Preserve location hint in client config for subsequent requests"""
    if response and response.get("target_location_hint_cookie"):
        config["target_location_hint"] = response.get("target_location_hint_cookie").get("value")
    return response