def accepts_gzip(request):

    return 'gzip' in request.META.get('HTTP_ACCEPT_ENCODING', '')
returns True if the request accepts Content-Encoding: gzip
dataset/ETHPy150Open jhmaddox/django-precompressed/precompressed/utils.py/accepts_gzip