Numerous sites that test web server speed refers to ‘compression on the server’. The idea behind this compression is that the server compresses certain files before sending it to the client (the browser). On the client side these files are again decompressed. Although there is a overhead on the client side to decompress file, this is marginal compared to the potential network savings.
[[email protected] ~]# vi /etc/httpd/conf.d/mod_deflate.conf <filesMatch "\.(js|html|css)$"> SetOutputFilter DEFLATE </filesMatch> [[email protected] ~]# systemctl restart httpd