Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Suppress falsk_compress (Gzip)

$
0
0

@pfbuxton wrote:

Hi,

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:
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip

Thanks,
Peter

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles