I have found using apache’s inbuilt gzip compression to be faster than using python’s inbuilt gzip which is called by flask_compress (details of how to use apache DEFLATE below).
My question is how can I turn flask_compress off?
It can be turned off by modifying the following line in dash.py:
Looking at the flask_compress documentation there is a key called ‘
COMPRESS_LEVEL’ which can be set to zero within app. But I don’t know how to set this key???
To set-up apache’s gzip you need to add the following to your .conf file:
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip