Questions tagged [brotli]

Brotli is a compression algorithm, first released in 2013 for web font compression and then used more widely for HTTP compression.

153 questions
4
votes
2 answers

JMeter "Content encoding Error" when using FireFox and HTTP(S) Test Script recorder

I am trying to configure Mozilla Firefox for JMeter 5 and as I am setting up manual proxy in Firefox and same proxy number in JMeter. I installed the special certificate. My Firefox is showing error as "Content encoding Error", when I open…
Mada
  • 43
  • 6
4
votes
1 answer

How can I enable brotli compression for my NodeJS app built with express?

I would like to use Brotli compression for my node application built on express. I deliver content (HTML, CSS and JS) with app.use(express.static('public')). I have found the shrink-ray module which does Brotli compression perfectly. However, when I…
Stefan
  • 1,590
  • 3
  • 18
  • 33
4
votes
1 answer

How to compress a folder with brotli command line (version 0.5.2)?

I am trying to compress a folder with Brotli(0.5.2) command line on Ubuntu 15.10 ~/brotli-0.5.2$ ./bro -f -i ./dec/ -o folder.br Then get error message: failed to read input Does anyone know how to compress folder with brotli? Thanks.
Protocol
  • 98
  • 1
  • 8
3
votes
0 answers

Angular 13 Docker how to use brotli on nginx docker server?

My point is to enable Brotli compression on my docker angular app. Brotli is enabled in Angular build package.json "architect": { "build": { "builder": "@angular-builders/custom-webpack:browser", "options": { …
ScorprocS
  • 287
  • 3
  • 14
3
votes
1 answer

How to serve manually compressed brotli file while having automatic compression enabled on CloudFront?

We have enabled automatic compression on CloudFront and it works great. It looks like it is using level 5 brotli compression (for performance reasons probably) and sometimes, with big files, we would like to compress it locally with max compression,…
Pavelloz
  • 551
  • 5
  • 12
3
votes
1 answer

Fastest way to serialize and compress a hashmap (object) in nodejs?

What is the fastest way to serialize and compress a javascript hashmap (object) in NodeJS 12+? I'm trying to find the fastest combination of serialization and compression methods to transform a javascript object into binary data. The number of…
Dan
  • 55,715
  • 40
  • 116
  • 154
3
votes
1 answer

Compress and decompress utf8 string with brotli

I'm trying to write compress and decompress a JSON string, but the decompression always fails with: Error: Decompression failed at BrotliDecoder.zlibOnError [as onerror] (zlib.js:170:17) { errno: -6, code: 'ERR_CL_SPACE' } I can't send the…
Manuel Spigolon
  • 11,003
  • 5
  • 50
  • 73
3
votes
1 answer

Why does Brotli Command Line only allow up to level 9?

According to the main GitHub page for Brotli there are 11 levels of dynamic compression. Sets on-the-fly compression Brotli quality (compression) level. Acceptable values are in the range from 0 to 11. However another page of the project shows…
YAHsaves
  • 1,697
  • 12
  • 33
3
votes
1 answer

How can I update .htaccess to conditionally gzip on-the-fly

Note Someone suggested that this is a duplicate of How to serve precompressed gzip/brotli files with .htaccess. That question seeks only to serve pre-compressed files. This question is different. Please see below. My Goal I want to serve…
jpodwys
  • 393
  • 2
  • 11
3
votes
1 answer

Serving gzip and br files from cloudfront and s3

S3 + Cloudfromt is not serving .gz /.br static file when client request header contains Accept-Encoding: gxip, deflate, br. Compressed file at build time and s3 folder contains index.html, index.html.gz and index.html.br Added Accept encoding in…
rinesh
  • 327
  • 1
  • 3
  • 9
3
votes
1 answer

Brotli in a React application using server side rendering(SSR)

I'm currently wiring up an application with SSR in react. However, I'm having issues with the server NOT returning responses in a Brotli compressed file format. I do see that my br files are getting generated by webpack in my client webpack…
M_devera
  • 95
  • 1
  • 9
3
votes
2 answers

asp.net core 2.2 brotli compression not working on IIS?

I read in Asp.Net Core 2.2 documentation, brotli compression is added to 2.2. I have app.UseResponseCompression(); and services.AddResponseCompression(); in my Startup.cs but when I tried it on my system with latest Chrome browser, I see only gzip…
martonx
  • 1,972
  • 4
  • 25
  • 42
3
votes
1 answer

Is it possible to serve Brotli compressed files from Firebase Storage?

If I upload a file on Firebase Storage as Gzip and Brotli compressed, would it be possible to serve the right file based on input headers from the client browser ? Thanks, Julien
3
votes
1 answer

What is the id number for Brotli compression inside a ZIP archive?

The ZIP file format supports a number of compression algorithms and assigns them numbers, for example 0 is store, 8 is deflate, and 14 is lzma. What number indicates Brotli compression? Is there any additional zip-level metadata needed for this…
joeforker
  • 40,459
  • 37
  • 151
  • 246
2
votes
2 answers

How to get gzip or brotli encoding on Google App Engine

Does Google App Engine allow compression of the results? For example, I have the following curl request: $ curl --location --request GET 'https://premiere-stage2.uk.r.appspot.com/' \ > --header 'Accept-Encoding: gzip, deflate, br' And the response…
David542
  • 104,438
  • 178
  • 489
  • 842
1 2
3
10 11