def METHOD_NAME(filename):
    response = HttpResponse(content_type='application/json')
    response['Content-Disposition'] = 'attachment; filename=%s;' % filename
    response['Cache-Control'] = 'no-cache'
    return response