def _generate_cache_key(request, headerlist, key_prefix):
    ctx = md5.new()
    for header in headerlist:
        value = request.META.get(header, None)
        if value is not None:
            ctx.update(value)
    return 'views.decorators.cache.cache_page.%s.%s.%s' % (key_prefix, request.path, ctx.hexdigest())
Returns a cache key from the headers given in the header list.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/utils/cache.py/_generate_cache_key