GZIP Compression Speeds Up Your Website
GZIP Compression Speeds Up Your Website
Speed is one of the important things when we make a website. So learning how to create a correct website will help our website to provide the best experience for visitors.
One method to speed up a website is to reduce the size of the page file to be transferred. To do this we can use Gzip compression on our website.
What is GZIP compression?
Gzip compression is a method to reduce file size so that network transfers are faster. This is also a form of file format.
Gzip compression allows the server to provide smaller page files so that it is loaded faster in the visitor's browser.
Is My Website Using Gzip Compression?
Currently most hosting services already use Gzip compression. So you need to check first whether the Gzip compression system is installed on your website or not.
To check please use ...
https://checkgzipcompression.com/
Or you can also see the results of checking on GTMETRIX .....

If your website doesn't use GZIP Compression, you can use the method below to add it ...
How to use Gzip Compression?
You can use Gzip compression by activating it via the .htaccess file. For those of you who already know how to create a website, of course you know where the file is :)
For those who don't know, you can enter the cpanel area of your website; and open the FILE MANAGER or FILE MANAGER. Look in the PUBLIC_HTML folder ....
If you have found, select the .htacccess file and click EDIT
Enter the code below to activate GZIP compression on your website ...
After that, SAVE / SAVE the .htaccess file and finish. You have finished activating GZIP compression.
Apache Server User
If the method above does not work for Apache server users; then you should just delete it from the .htaccess file and replace it with the code below ....
NGINX Server User
For NGINX server users, you need to add the code below to the config file from the website ...
How effective is Gzip Compression?
The Gzip compression system can compress your website page files from 50% to 70% in actual size. That means your website pages will load faster; and of course it will be more bandwidth efficient.
How does the system work from a compressed file?
The compressed file will be requested by the browser; and the server will send the compressed file if the browser that requests it understands the format of GZIP compression. Fortunately all modern browsers already understand this Gzip system.
So there is no problem making your website sending data in GZIP compression format ....

One method to speed up a website is to reduce the size of the page file to be transferred. To do this we can use Gzip compression on our website.
What is GZIP compression?
Gzip compression is a method to reduce file size so that network transfers are faster. This is also a form of file format.
Gzip compression allows the server to provide smaller page files so that it is loaded faster in the visitor's browser.
Is My Website Using Gzip Compression?
Currently most hosting services already use Gzip compression. So you need to check first whether the Gzip compression system is installed on your website or not.
To check please use ...
https://checkgzipcompression.com/
Or you can also see the results of checking on GTMETRIX .....

If your website doesn't use GZIP Compression, you can use the method below to add it ...
How to use Gzip Compression?
You can use Gzip compression by activating it via the .htaccess file. For those of you who already know how to create a website, of course you know where the file is :)
For those who don't know, you can enter the cpanel area of your website; and open the FILE MANAGER or FILE MANAGER. Look in the PUBLIC_HTML folder ....
If you have found, select the .htacccess file and click EDIT
Enter the code below to activate GZIP compression on your website ...
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file. (html? | txt | css | js | php | pl) $
mod_gzip_item_include cgi-script handler $
mod_gzip_item_include mime ^ text /.*
mod_gzip_item_include mime ^ application / x-javascript. *
mod_gzip_item_exclude mime ^ image /.*
mod_gzip_item_exclude rspheader ^ Content-Encoding:. * gzip. *
</ ifModule>
After that, SAVE / SAVE the .htaccess file and finish. You have finished activating GZIP compression.
Apache Server User
If the method above does not work for Apache server users; then you should just delete it from the .htaccess file and replace it with the code below ....
AddOutputFilterByType DEFLATE text / plain
AddOutputFilterByType DEFLATE text / html
AddOutputFilterByType DEFLATE text / xml
AddOutputFilterByType DEFLATE text / css
AddOutputFilterByType DEFLATE application / xml
AddOutputFilterByType DEFLATE application / xhtml + xml
AddOutputFilterByType DEFLATE application / rss + xml
AddOutputFilterByType DEFLATE application / javascript
AddOutputFilterByType DEFLATE application / x-javascript
NGINX Server User
For NGINX server users, you need to add the code below to the config file from the website ...
gzip on;
gzip_comp_level 2;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text / plain text / html text / css application / x-javascript text / xml application / xml application / xml + rss text / javascript;
# Disable for IE <6 because there are some known problems
gzip_disable "MSIE [1-6]. (?!. * SV1)";
# Add a vary header for downstream proxies to avoid cached gzipped files to IE6
gzip_vary on;
How effective is Gzip Compression?
How does the system work from a compressed file?
The compressed file will be requested by the browser; and the server will send the compressed file if the browser that requests it understands the format of GZIP compression. Fortunately all modern browsers already understand this Gzip system.
So there is no problem making your website sending data in GZIP compression format ....
0 Response to "GZIP Compression Speeds Up Your Website"
Post a Comment