Disable gzip auto decoding
See original GitHub issueWhich service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of pip freeze
.
Azure 4.0.0, blob 1.4.0
What problem was encountered?
When downloading a gzipped file that contains Content-Encoding: gzip
through get_blob_to_stream
, the file is automatically decoded. This was reported at #509. However, I find the workaround not to be maintainable since it messes with private method/classes. I believe this is a valid use-case, one may want a file to be decoded by the browser but not when fetching it through the API.
Have you found a mitigation/solution?
No
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Disable Chrome's gzip automatic decompression
Answer. set a new custom header accept-encoding to either: an empty value or. gzip;q=0,deflate;q=0 either should work.
Read more >How To Optimize Your Site With GZIP Compression
In your browser: In Chrome, open the Developer Tools > Network Tab (Firefox/IE will be similar). Refresh your page, and click the network...
Read more >GZip Decompress Online to Gzip Decode Text - Code Beautify
Gzip to Decompress tool to gzip decode Online helps to convert Gzip Text to plain Text and helps to save and share Gzip...
Read more >Chapter 29. GZIP Compression/Decompression - JBoss.org
The client framework can (though not by default - see below) automatically set the Accept-Encoding header to be "gzip, deflate" so you do...
Read more >How to Enable GZIP Compression to Speed Up WordPress Sites
However, to serve the compressed resources to your users with no hiccups, you must configure your server properly. In a hurry? Save this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @zezha-msft Here’s the issue created by azure core https://github.com/Azure/azure-sdk-for-python/issues/17145 after they support this we will enable user to disable auto gzip.
The file is decoded after it’s downloaded. Performance is not really affected here. Azure does support gzip, the issue is just the python API doing this auto decoding which is quite unexpected.