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
2
votes
0 answers

ModuleNotFoundError: No module named '_brotli'

Encountered the following error ModuleNotFoundError: No module named '_brotli' I already tried to uninstall/install brotli, however the error remains. I'm new to python so any support is much appreciated! Using Anaconda on Windows import dash …
AMS
  • 31
  • 2
2
votes
2 answers

ModuleNotFoundError: No module named '_brotli' when trying to install dash

I try to install dash on a mac OS, and I have the following error when running 'import dash' on a python script: Traceback (most recent call last): File "app.py", line 16, in import dash File…
gamaievsky
  • 31
  • 1
  • 3
2
votes
0 answers

How to effectively iterate through a 7z archive reading all files without extracting?

I have a 7z archive containing plenty of JSONs. What's the most effective (=fastest) way to iterate through the archive and read every single JSON? My aim is to extract a certain key from every single JSON in the archive, preferably without…
do-me
  • 1,600
  • 1
  • 10
  • 16
2
votes
0 answers

brotli with Apache and PHP on Ubuntu 20.04 - possible?

I've tried enabling brotli with Apache on Ubuntu 20.04. It works, but not for content generated with PHP. It works for HTML files: $ curl -v -H "Accept-Encoding: gzip, deflate, br" https://server.tld/pp.html 2>&1 | grep content-encoding <…
Tomasz
  • 179
  • 12
2
votes
1 answer

Compress billions of files in S3 bucket

We have lots of files in S3 (>1B), I'd like to compress those to reduce storage costs. What would be a simple and efficient way to do this? Thank you Alex
AlexV
  • 3,836
  • 7
  • 31
  • 37
2
votes
1 answer

Deploying Angular 8 Project after brotli compression

I have a project in Angular 8. I have referred to https://medium.com/@subodhkumarjc/angular-build-optimization-part-2-compression-b866dd0593c3 to implement bortli compression in my project since my main.js files were coming pretty big in size after…
2
votes
1 answer

Is it possible to use brotli compression in React?

My webpack bundle is quite heavy (2.3mb). I recently read articles about brotli compression, but all of them talk about a classic set up with js files served by a server. So the compression happens in the backend. My question may be stupid, but is…
DoneDeal0
  • 5,273
  • 13
  • 55
  • 114
2
votes
1 answer

Nodejs Brotli compression returning zeros

I’m trying to store large database query results in a memcached server for quicker retrieval, and am compressing the data prior to entry in memcache with brotli. I’ve been trying to test with an example object like so: //cacheserver already defined…
owengall
  • 455
  • 4
  • 11
2
votes
1 answer

Nginx: cache Brotli compressed proxied upstream responses

I enabled Brotli compression in Nginx for a dynamically generated, but rarely changing resource. My expectation was that when Nginx caches upstream responses, it will also cache the compression result. Thus, I assumed the CPU cost of enabling Brotli…
Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239
2
votes
0 answers

How to serve static gzip compressed file in Angular application?

I Compressed my main.js to main.js.gzip. now how i can serve the gzip file in my browser
mani kanta
  • 21
  • 3
2
votes
2 answers

How to make http request using brotli compression python

I have following a Apache server where brotli compression is enabled. When I send the curl request from my cli it works fine. However when i send the request from python it returns plain text without brotli compression. which means it did not use…
Rana
  • 389
  • 5
  • 17
2
votes
0 answers

Cloudflare changes content-encoding from gzip to brotli

We serve out our React Application from a NodeJS Express server using GZIP compression. // app.js app.get('*.js', (req, res, next) => { req.url = req.url + '.gz'; // eslint-disable-line res.set('Content-Encoding', 'gzip'); next(); }); //…
nikjohn
  • 20,026
  • 14
  • 50
  • 86
2
votes
1 answer

installing mod_brotli in centos apache

I am having troubles installing brotli on a centos machine. I've checked the docs for brotli and apparently it is available in version 2.4.26 and later. I am running a Apache/2.4.6 (CentOS 7). I may be misunderstanding what available means, because…
potato
  • 4,479
  • 7
  • 42
  • 99
2
votes
1 answer

Enable brotli compression for apache-tomcat-9.0.5

I want to enable brotli compression for on my apache-tomcat-9.0.5. I want to implement the same for JS/CSS/HTML content. Most of the users coming to my site use chrome. Is this feasible? Is there any documentation which i can refer? Is it possible…
Shailender Jain
  • 25
  • 1
  • 14
2
votes
3 answers

Serving precompressed content with Brotli on Apache

I have installed mod_brotli on my WHM server via easyapache 4 - html, css, js files etc are all being compressed. I then came across this in the offocial docs - https://httpd.apache.org/docs/2.4/mod/mod_brotli.html#precompressed I have since added…
Greg
  • 21
  • 1
  • 3