def ShouldHaveChromeProxyViaHeader(self):
    resp = self.response
    if (resp.url.startswith('https') or resp.url.startswith('data:')):
        return False
    if ((resp.status == 304) or resp.served_from_cache):
        return False
    if (not resp.headers):
        logging.warning('response for %s does not any have header (refer=%s, status=%s)', resp.url, resp.GetHeader('Referer'), resp.status)
        return False
    return True
def ShouldHaveChromeProxyViaHeader(self):
    resp = self.response
    if (resp.url.startswith('https') or resp.url.startswith('data:')):
        return False
    if ((resp.status == 304) or resp.served_from_cache):
        return False
    if (not resp.headers):
        logging.warning('response for %s does not any have header (refer=%s, status=%s)', resp.url, resp.GetHeader('Referer'), resp.status)
        return False
    return True