Question: how to enable gzip compression in nginx?
Answer: To enable compression, include the gzip directive with the on parameter. gzip on; By default, NGINX compresses responses only with MIME type text/html . To compress responses with other MIME types, include the gzip_types directive and list the additional types.