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
29
votes
3 answers

unable to decode Python web request

I am trying to make web request to my trading account . Python is unable to decode the web request. Web request is successful with code - 200. Here is the code below import requests headers = { 'accept-encoding': 'gzip, deflate, br', …
dnyanesh ambhore
  • 441
  • 1
  • 4
  • 8
23
votes
1 answer

Why is Brotli not supported on HTTP?

I noticed an odd thing where apparently Firefox says it supports Brotli on HTTPS, but not HTTP? As Brotli is like gzip but more efficient, why would it limit it to HTTPS? On a HTTPS tab I see: Accept-encoding: gzip, deflate, br is sent. But on other…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
16
votes
2 answers

Using Brotli with Firebase hosting

Is there a way to use Brotli compression instead of gzip with Firebase hosting? I know that Firebase will automatically compress it but so far it is only with gzip.
Adam j
  • 391
  • 5
  • 18
11
votes
1 answer

Does Chrome support Brotli? (Accept-Encoding does not contain br)

Can I use page says that Chrome supports brotli for some time now. I would think that the Accept-Encoding string would be like this: Accept-Encoding:gzip, deflate, sdch, br But I checked on a request to StackOverflow e.g. and it does not contain…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
11
votes
2 answers

Specify multiple (gzip + brotli) httpCompression schemes in IIS7/8/8.5 and prioritise brotli

I'm trying to get the new Brotli compression scheme working in IIS using "Brotli compression module for Microsoft IIS" by iisspeed.com. The Brotli compression module itself works fine if I change the config section in…
theyetiman
  • 8,514
  • 2
  • 32
  • 41
11
votes
3 answers

Compile Brotli into a DLL .NET can reference

So I'd like to take advantage of Brotli but I am not familiar with Python and C++.. I know someone had compiled it into a Windows .exe. But how do I wrap it into a DLL or something that a .NET app can reference? I know there's IronPython, do I just…
gt6707a
  • 649
  • 1
  • 7
  • 12
9
votes
3 answers

How to serve precompressed gzip/brotli files with .htaccess

Im trying to serve precompressed gzip/brotli files for html, js and css. With the following code. RewriteEngine on # Brotli # If the web browser accept brotli encoding… RewriteCond %{HTTP:Accept-encoding} br # …and the web browser…
improv3d
  • 131
  • 1
  • 5
8
votes
4 answers

Error when importing Dash: "ImportError: DLL load failed while importing _brotli: The specified module could not be found."

I'm following the tutorial on using Dash and trying the sample code found here: https://dash.plotly.com/layout After installing dash and running the code, I get the following error message in the traceback: Traceback (most recent call last): File…
8
votes
3 answers

How to import and use CGO Brotli implementation from google?

I am trying to import and use cbrotli implementation from google as below: import ( "fmt" "io/ioutil" cbrotli "github.com/google/brotli/go/cbrotli" ) But I am getting the below error while trying to run the program: learn-go [master●●]…
Aditya Singh
  • 15,810
  • 15
  • 45
  • 67
7
votes
1 answer

Do we need to manually set Nuxt send gzipped or brotli-compressed files?

in order to improve lighthouse score I need to enable gzip and/or brotli compression so it will increase performance score. I added two webpack plugins to my nuxt.config.js file: plugins: [ new CompressionPlugin({ filename:…
7
votes
3 answers

How do I implement Brotli compression in Apache?

I read about Broli compression and thought I might as well look into supporting it. A recent(ish) article that I read mentioned a .br file - so will it be as easy as putting an index.br file alongside my index.html file? Or will supporting it mean…
Richard
  • 4,809
  • 3
  • 27
  • 46
6
votes
0 answers

Decompression time in devtools network - Chrome/Firefox (Gzip / Brotli)

I want to use brotli to compress some javascript files. I managed to compress them on the server side using the maximum compression level. Indeed this compressed file weight less than the GZIP one. I have for example my file.js.br on the server…
MaryShaw
  • 128
  • 4
6
votes
1 answer

python3.8 brotli brotli.error: BrotliDecompress failed?

mycode python3.8 brotli=1.0.9 use request get url,headers use Accept-Encoding="br" i need use decode br, because i think use accept-encoding=br more good import brotli import requests headers = {} headers['Accept'] =…
xin.chen
  • 964
  • 2
  • 8
  • 24
6
votes
1 answer

node express Server does not serve compressed static files with brotli and gzip compression

I have react app with SSR implementation using react loadable SSR addon npm package. I am following this tutorial A Tale of Brotli Compression to implement brotli and gzip compression I can see .br and .gzip compressed files in build folder. but…
Always_a_learner
  • 4,585
  • 13
  • 63
  • 112
6
votes
0 answers

Adding Brotli pre-compressed files as response body in ASP .NET Core 3.1

I have a static pre-compressed JS file with Brotli in ASP .NET Core 3.1. I want when a request for that file arrives ending with .js, to return the content of the pre-compressed version which is with the same name, ending with .js.br. I tried…
Rosen Dimov
  • 1,055
  • 12
  • 32
1
2 3
10 11