@classmethod
def detect_cloudfront(cls, res):
    service = 'CloudFront'
    waf_headers = ('Via', 'X-cache')
    if (any(((h in res.headers.keys()) for h in waf_headers)) and any(((service.lower() in val) for val in res.headers.values()))):
        return True
    if (res.headers.get(SERVER) == service):
        return True
    return
@classmethod
def detect_cloudfront(cls, res):
    service = 'CloudFront'
    waf_headers = ('Via', 'X-cache')
    if (any(((h in res.headers.keys()) for h in waf_headers)) and any(((service.lower() in val) for val in res.headers.values()))):
        return True
    if (res.headers.get(SERVER) == service):
        return True
    return