GZIP compression allows you to compress the resources of a web page before they are served to the users' browsers so that the web page loads faster and thus improves your WPO.
This type of compression has become very popular in recent times among WPO consultants thanks to tools such as Google Page Speed Insights that have given it a lot of importance.
Moreover, this lossless compression format is royalty-free under Open Source license which has facilitated its diffusion.
However, the only downside of this type of compression is that although it is useful (and very useful) for HTML, CSS and JS files, it is not useful for optimising images as it barely compresses them.
In any case, implementing this compression on your website does not mean that it will be optimised in terms of loading speed. GZIP is not a panacea but it will help you a lot to improve the bandwidth consumed by your website when loading.
Why is it good to have GZIP compression activated?
Having GZIP compression enabled on your website will be beneficial because:
- It will compress your files and your website will load very fast.
- It will help Google bots to crawl your website faster and therefore optimise the Crawl Budget.
- All current browsers support GZIP compression.
How does GZIP compression work?
GZIP compression works in a simple way:
The server communicates to the web browser in the URL headers that the content is compressed.
In this way, the browser knows that the files are GZIP compressed and can decompress them before the user sees the content.
Enabling GZIP compression in Apache
To enable GZIP compression in Apache you will have to follow this process:
1. Access via FTP (Filezilla will do) to the .htaccess file on your Apache server.
2. Click on the .htaccess file in the root folder of your server and click on edit.
3. Once you are editing (just open it in a notepad) this file copy the following code to the beginning of the file:
4. Once you save and upload the file you will have activated GZIP compression.
NOTE: Remember that in order for it to work, the mod_gzip extension must be activated in your hosting provider along with the mod_deflate extension.
Activate the GZIP/DEFLATE compression in cPanel
When activating the GZIP/DEFLATE compression from Cpanel it will be easier as you will not have to touch code and you will only have to follow these instructions:
1. Once inside Cpanel, go to the "Optimize website" section.
2. Check the option "Compress all content".
That's it.
With this system you will have compressed your website using GZIP or the DEFLATE method, which is roughly equivalent to GZIP in Apache.
Licenciada en Bellas Artes y programadora por pasión. Cuando tengo un rato retoco fotos, edito vídeos y diseño cosas. El resto del tiempo escribo en MA-NO WEB DESIGN AND DEVELOPMENT.
MENSAJE
OPERACIÓN EJECUTADA
We use our own and third-party cookies to improve our services, compile statistical information and analyze your browsing habits. This allows us to personalize the content we offer and to show you advertisements related to your preferences. By clicking "Accept all" you agree to the storage of cookies on your device to improve website navigation, analyse traffic and assist our marketing activities. You can also select "System Cookies Only" to accept only the cookies required for the website to function, or you can select the cookies you wish to activate by clicking on "settings".
These cookies are necessary for the website to function and cannot be disabled on our systems. They are generally only set in response to your actions in requesting services, such as setting your privacy preferences, logging in or completing forms. You can set your browser to block or alert you to these cookies, but some areas of the site will not work. These cookies do not store any personally identifiable information
Performance Cookies
These cookies allow us to count visits and traffic sources so that we can assess the performance of our site and improve it. They help us know which pages are the most or least visited, and how visitors navigate the site. All information collected by these cookies is aggregated and therefore anonymous. If you do not allow these cookies to be used, we will not know when you visited our site and will not be able to assess whether it worked properly
Functional Cookies
These cookies allow the website to provide better functionality and customization. They may be set by our company or by external providers whose services we have added to our pages. If you do not allow these cookies to be used, some of these services may not function properly
Targeted Cookies
These cookies may be set through our site by our advertising partners. They may be used by those companies to profile your interests and display relevant ads on other sites. They do not directly store personal information, but are based on the unique identification of your browser and Internet device. If you do not allow these cookies to be used, you will see less targeted advertising