To sys admins,
I was recently made aware that nginx by default will not gzip / compress responses coming from the DHIS 2 Web API.
The reason turned out to be that DHIS 2 serves content with the charset specified as part of the content-type, e.g.
This is not caught by the default nginx configuration so you need to explicitly define it.
I have updated the install guide with a reasonable gzip_types value:
You can verify that content is compressed by looking for this header in the response:
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo