Check if gzip compression is enabled on your website.
Gzip compression is a method used by web servers like Nginx and Apache to reduce the size of files transmitted to the client and thus reduce the bandwidth use and load a web page faster. This process is similar to zipping files on your computer to save storage space, except that Gzip compression operates in real-time and is done on the web server side, without impacting on the server load.
The main benefit of using Gzip compression on your website is to make your web pages load faster reducing the response time, thus your website will show content faster. As you know, there are various ranking factors to enhance the SEO of your website, and one of these is how fast your website can load its content. Using Gzip you can improve the website load time and thus improve the search engine ranking. A valid and newer alternative to Gzip is Brotli compression, developed by Google and already in use by millions of websites.
You can use Google PageSpeed Insights to test your website's page load performance.
As mobile devices often operate with limited bandwidth, optimizing your website files' size becomes crucial for enhancing the experience of mobile users. By reducing file sizes through techniques like Gzip compression, you can significantly improve loading times and minimize data usage for mobile visitors. This optimization ensures that users on smartphones and tablets can access your content faster and efficiently, even under reduced bandwidth availability and speed (such as on 3G).
Edit your Nginx vHost configuration file and add these lines:
Then restart Nginx for the changes to take effect:
First make sure that Gzip module is enabled on Aapache:
Then edit your Apache configuration file and add these lines:
Then restart Apache for the changes to take effect: