In an article on black passenger traffic about the impact of Web page opening speed on SEO, which mentions the benefits of Web page opening gzip compression, Next I will share with you how to turn on gzip compression under Windows system IIS server.
First let's look at what is Gzip,gzip is the GNU zip abbreviation, it is a GNU Free software file compression program, also often used to represent the gzip file format. Gzip can greatly accelerate the site, up to 80% compression ratio, using gzip compression algorithm to compress the content of Web pages published by the server and then transfer to the client browser, which actually reduces the number of bytes transmitted over the network, the most obvious advantage is to speed up the page loading speed. In most cases the Apache server has this module turned on, and IIS is rarely turned on by default, so let's share how to turn on gzip compression on the IIS server.
In fact, IIS6 has built the support of gzip compression, just do not have a good management interface, so it will take some time to open this function. First open IIS, on the "site" (Note that the site is the main, not a specific site) right-click, select "Properties", then open the "Services" tab, the two compression options are selected. As shown in the following:
The second step is to right-click on "Web Server Extensions" and select "Add a new server extension". Such as
Enter the extension: Gzip, Path: C:\Windows\System32\inetsrv\gzip.dll, and set the extended status to allow.
Next stop the IIS server, this can be stopped in IIS management, or you can stop in service management or CMD, and then find "C:\Windows\system32\inetsrv\MetaBase.xml" file, open with Notepad (recommended to back up the file before the change, I recommend using EditPlus Edit), find "IIsCompressionScheme", here are three identical names of segments, the last one without tube, we only need to modify the first two. Set HcDoDynamicCompression, HcDoStaticCompression, and HcDoOnDemandCompression to "TRUE", The HcDynamicCompressionLevel is set to 9 (here you can set the 0~9,9 is the highest compression rate), Then add the types of files you want to compress in HcFileExtensions (representing static files) and hcscriptfileextensions (for dynamic script files), such as: ASP, PHP, and so on.
How to turn on gzip compression under WIN2003 server IIS