Enable gzip compression for your website using htaccess file

Gzip compression is a method of compressing files to make them them smaller so that it will be faster for network transfers. It is a standard practice that we must enable compression for production websites. We can enable gzip compression by adding following set of code in your .htaccess file.