Enabling deflation on Apache web server can reduce the size of files that your server responded, the configuration is quite simple:
Just add the following lines to httpd.conf
[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
...
<IfModule mod_deflate.c>
<filesMatch ".(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>