add brotli-min-length configuration option (#7854)

* add `brotli-min-length` configuration option

* add e2e tests for brotli

* include check for expected content type

* fix header and format
This commit is contained in:
Rahil Patel 2021-11-02 07:52:59 -04:00 committed by GitHub
parent ed34f6c93d
commit c8ab4dc307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 84 additions and 0 deletions

View file

@ -98,6 +98,7 @@ The following table shows a configuration option's name, type, and the default v
|[use-geoip2](#use-geoip2)|bool|"false"|
|[enable-brotli](#enable-brotli)|bool|"false"|
|[brotli-level](#brotli-level)|int|4|
|[brotli-min-length](#brotli-min-length)|int|20|
|[brotli-types](#brotli-types)|string|"application/xml+rss application/atom+xml application/javascript application/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/javascript text/plain text/x-component"|
|[use-http2](#use-http2)|bool|"true"|
|[gzip-level](#gzip-level)|int|1|
@ -665,6 +666,10 @@ The default mime type list to compress is: `application/xml+rss application/atom
Sets the Brotli Compression Level that will be used. _**default:**_ 4
## brotli-min-length
Minimum length of responses, in bytes, that will be eligible for brotli compression. _**default:**_ 20
## brotli-types
Sets the MIME Types that will be compressed on-the-fly by brotli.