nginx -T | grep gzip to check gzip settings. What output indicates gzip is enabled?nginx -T | grep gzip
The directive gzip on; enables gzip compression in nginx. If it is commented out or set to off, gzip is disabled.
Option A enables gzip and sets it to compress common text MIME types. Option A tries to compress images which is inefficient. Option A disables gzip. Option A compresses binary streams which is not typical.
The gzip_disable directive disables gzip for specified user agents. If it matches the client, gzip won't compress responses.
Option A uses 4 buffers of 16k each, which is a common recommended setting balancing memory use and performance. Other options use too small or too large buffers.
First edit the config file, then add gzip directives, test syntax, and finally reload nginx to apply.
