Brotli is a compression algorithm, first released in 2013 for web font compression and then used more widely for HTTP compression.
Questions tagged [brotli]
153 questions
6
votes
2 answers
Does CloudCDN support the serving of Brotli encoding?
My company is thinking of moving from AWS to GCP. One of the feature we want to support from CloudCDN is brotli encoding. We have a techstack that will bundle our javascript into 3 files:
chunk.js
chunk.js.gz
chunk.js.br
If CloudCDN receives…

Armeen Moon
- 18,061
- 35
- 120
- 233
6
votes
1 answer
How to read a brotli compressed string?
I'm getting a brotli compressed json string from a website. I want to decompress and read it.
When I use input stream from response, I'm able to read it properly using
new BufferedReader(new InputStreamReader(new…

Abhash Upadhyaya
- 717
- 14
- 34
6
votes
1 answer
Sharing MIME type list using GZIP and BROTLI in NGINX
I want to enable GZIP and Brotli compression using NGINX. I have to supply each with their own list of MIME types like so in my nginx.conf:
gzip_types text/plain
text/css
...etc;
brotli_types text/plain
…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
6
votes
1 answer
Brotli compression multithreading
It's my understanding Brotli stores blocksize information in a meta-block header with only the final uncompressed size of the block, and no information about the compression length (9.2). I'm guessing that a wrapper would be need to be created in…

l'L'l
- 44,951
- 10
- 95
- 146
5
votes
1 answer
Conda AttributeError: module 'brotli' has no attribute 'error' after update
I just run the command conda update conda. After that, all of my commands gives AttributeError: module 'brotli' has no attribute 'error'. I searched for solutions but none works. Anaconda Error - module 'brotli' has no attribute 'error' seems a…

heyula
- 113
- 5
5
votes
1 answer
Using brotli with AWS Cloudfront + S3
I'm deploying a React App using Cloudfront and S3 and I would like to enable brotli for compression. I've seen some tutorials that address this problem using lambda@edge. The behavior configuration for my Cloudfront distribution is the following
I…

Juan Diego Chaves Sanguino
- 81
- 2
- 8
5
votes
1 answer
Problem with brotli configuration in nginx
I am following this guide https://www.vultr.com/docs/add-brotli-support-to-nginx-on-ubuntu-18-04
I have followed every step but I am stuck at Step 4 – Configure Nginx
When I add to nginx.conf
load_module…

p0mman
- 78
- 7
5
votes
4 answers
compress list of files and directories with brotli
I'd like to use brotli to compress a list of files and directories. I'm able to do this with zip running
zip -r archive.zip *
and I'm looking for a similar command with brotli. I've tried
tar -cf archive.gz * && \
brotli -n -q 11 -o archive.zip…

Guig
- 9,891
- 7
- 64
- 126
5
votes
2 answers
getting content of page with 'br' encoding and decoding it by php curl
I want to get content of this page by php curl:
my curl sample:
function curll($url,$headers=null){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
if ($headers){
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
}
…

saeid ezzati
- 855
- 11
- 29
5
votes
2 answers
Is there a way to check if a buffer is in Brotli compressed format?
I'm an intern doing research into whether using Brotli compression in a piece of software provides a performance boost over the current release, which uses GZip.
My task is to change anything using GZip to use Brotli compression instead. One…

naffarn
- 526
- 5
- 12
4
votes
1 answer
Construct a compressed Response to take advantage of native decompression
My application bundles some brotli-compresset assets and I want to somehow decompress them using browser itself instead of shipping a decompression library. The best way I could think of to trick browser into doing that is simulating a compressed…

pragma
- 1,290
- 14
- 16
4
votes
2 answers
Is there any (invertible) way (in c#) to convert a string into a smaller one, and when I say smaller I mean "with reduced length"?
Let me explain: in my use case a system gives me many strings that can vary in size (number of characters; length), sometimes it can be really huge! The problem is that I have to save this string in a column of a table of a "SQL Server" database,…

1o0oP
- 75
- 5
4
votes
0 answers
Blazor - how to use brotli compression
Blazor WASM supports gzip/brotli compression. Official documentation shows example web.config
however this web.config is not using hosted model.
If I merge example web.config with root web.config

user1085907
- 1,009
- 2
- 16
- 40
4
votes
0 answers
How does brotli achieve better parquet file compression on INT64 than INT32?
I ran a few experiments where I saved a DataFrame of random integers to parquet with brotli compression. One of my tests was to find the size ratio between storing as 32-bit integers vs 64-bit:
df = pd.DataFrame(
np.random.randint(0, 10000000,…

A. Rocke
- 41
- 2
4
votes
1 answer
What is the optimum minimum length for brotli compression?
google ngx_brotli default at 20
some websites mentioned minimum should be 100
some says don't go over 256 bytes
what's the exact figure actually? both for nginx and for normal brotli compression minimum.
Can anyone help answer? Thanks in…

Okit Tfseven
- 131
- 7