Down the bottom, add the following to the “Additional nginx directives” field:
Click OK to save.
Verify with GTMetrix.com
Another way is to set up deflate.
First you need to check the module mod_deflate is enabled on the server.
Or, in ssh:
# httpd -M |grep deflate
Then you need to create the file /etc/httpd/conf.d/deflate.conf
# vim /etc/httpd/conf.d/deflate.conf
and add the following into it.
Chech here – https://checkgzipcompression.com