Ngninx uses Content-Length to decide if yes or no, it compresses the output. With this feature enabled, API responses will be gzipped by Nginx, with the expectation of a quicker time to interaction in pages.
If it's the wrong proposal, then the problem I try to solve is the Content-Length response header is not output in API responses.
Thus, it adds a
Content-Length
response header.Ngninx uses
Content-Length
to decide if yes or no, it compresses the output. With this feature enabled, API responses will be gzipped by Nginx, with the expectation of a quicker time to interaction in pages.If it's the wrong proposal, then the problem I try to solve is the
Content-Length
response header is not output in API responses.