arriven / db1000n

MIT License
1.18k stars 208 forks source link

Suggestion: gzip header #490

Open matherfather opened 2 years ago

matherfather commented 2 years ago

Add to the headers or similar: Accept-Encoding: br;q=1.0, gzip;q=0.8, *;q=0.1

Potentially it will force server to use archiving which can use more mem/ cpu per request.

roman-kruglov commented 2 years ago

@Arriven I wanted to implement this, but it seems the config already has such capabilities:

          "headers": {
            "Accept-Encoding": "gzip,deflate",

Does it make sense to implement adding it in code then? Or it shouldn't be added to every request?