def after_request_check_something(response):
    return response

def after_request_compress(response):
    return response

@app.after_request
def after_request_combined(response):
    response1 = after_request_compress(response)
Flask: How to control the order that after_request handlers are executed?