tzssangglass commented on issue #2720:
URL: https://github.com/apache/apisix/issues/2720#issuecomment-855618520
here I give a minimalist configuration for apisix to start gzip.
step 1: turn on gzip, add configuration in `config.yaml`
```yaml
nginx_config:
http_server_configuration_snippet: |
gzip on;
```
step 2: request with gzip header
```shell
curl -H "Accept-Encoding: gzip" 127.0.0.1:9080/index.html -I
```
step 3:
the response header is
```
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Date: Mon, 07 Jun 2021 06:12:56 GMT
Last-Modified: Wed, 02 Jun 2021 00:04:09 GMT
ETag: W/"60b6caf9-449"
Server: APISIX/2.6
Content-Encoding: gzip
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]