Complete the code to enable gzip compression in nginx.
gzip [1];Setting gzip on; enables gzip compression in nginx.
Complete the code to set the minimum file size for gzip compression to 1000 bytes.
gzip_min_length [1];The gzip_min_length directive sets the minimum length of a response to be compressed. Here, 1000 bytes is the correct value.
Fix the error in the gzip_types directive to compress text and JSON files.
gzip_types [1];In nginx, gzip_types lists MIME types separated by spaces without commas or other punctuation.
Fill both blanks to set gzip compression level to maximum and disable it for MSIE browsers.
gzip_comp_level [1]; gzip_disable "[2]";
The gzip_comp_level directive sets compression level from 1 (lowest) to 9 (highest). To disable gzip for MSIE browsers, use gzip_disable "MSIE";.
Fill all three blanks to enable gzip, set minimum length to 500, and compress HTML files.
gzip [1]; gzip_min_length [2]; gzip_types [3];
Enable gzip with on, set minimum length to 500 bytes, and compress HTML files by specifying text/html in gzip_types.