flask-compress
flask-compress copied to clipboard
Compress responses of your Flask application.
When using the flask-caching===2.0.2 library together with flask-compress==1.14.0 I run into an issue where the caching doesn't work properly. I tested three scenarios: 1. using just the @cache.cached(timeout=600, query_string=True) decorator:...
I am using the Compress(app) method of implementation and it looks like my .js files are not being compressed at all. Anyone facing this issue as well?
I have a streaming endpoint. When I turn on flask-compress it stops streaming. Is there a workaround? ``` app = Flask(__name__) app.config["COMPRESS_REGISTER"] = False # disable default compression of all...
Feature request: - can we add the original content length into an 'Original-Content-Length' header in the `after_request` func (behind an optional flag in the init method if you don't want...
Some User Agent should be excluded from compression to avoid decoding issues. For instance, Safari 11.1.2 included in Mac OS X 10.11.6 gives this status message: *Safari can't open the...
When using [Flask Streaming capabilities](https://flask.palletsprojects.com/en/2.0.x/patterns/streaming/), flask-compress gathers all the data with _get_data()_ and returns everything at once, breaking the "streaming" paradigm. You may integrate streaming compression as described in this...
This is more a need for technique than a library failure. Due to the necessary changes to modify Etags when returning compressed content, the Etags don't match when calling make_conditional...
Hey, I'm just writing up a PR for this repo to propose a new feature. I've used Python 3 language features, however it looks like the package is documented as...