'Attempts to determine whether or not the given request is coming from a CDN.
Currently, this is a static check because edx.org only uses CloudFront, but may
be expanded in the future.'

@staticmethod
def is_cdn_request(request):

    cdn_user_agents = CdnUserAgentsConfig.get_cdn_user_agents()
    user_agent = request.META.get('HTTP_USER_AGENT', '')
    if (user_agent in cdn_user_agents):
        return True
    return False
