Edit .htaccess file
Enabling Gzip in Apache is very easy, and will save us bandwidth transfer and also takes less time to load the pages.
Gzip is enabled by adding the following code
to a file called .htaccess on your web server document_root.
Save the file and then refresh your webpage.
To check your server to see if it is sending out compressed data, go to this site.