def response_minify(response):
    """
    minify html response to decrease site traffic
    """
if response.content_type == 'text/html; charset=utf-8':
    pass
Minify HTML output from Flask application with Jinja2 templates