Turning on compression for webservers will help speed up WordPress sites by sending less data over the network. Google’s PageSpeed Insights also likes compression when evaluating the speed of websites. It’s easy and very quick to do; however, make sure a backup of the .htaccess file in the top level directory is made before doing this. You’ve been warned. If things go afoul, just copy the backup .htaccess file to restore your settings.
This trick works with Apache web servers. Add the following lines of code to the end of the .htaccess file:
There are also several WordPress plugins available that will auto-magically setup compression on sites. In the “add new plugin” function, search on keywords “gzip compression” to locate them.