Gzip compression is a common HTTP compression algorithm that can compress html,javascript,css and even dynamic file Php,dll. This reduces the amount of data transferred between the server and the browser, thus submitting the site access speed and increasing the burden on some servers.
A Environmental requirements
Here we are using Windows Server 2003 and IIS6, IIS7 the default to open gzip, just simple configuration on it, this later.
Two Configuration process
1. Log in to your Hong Kong server (or VPS host/cloud Server) to open Internet Information Services (IIS) Manager
2. Add a new Web service extension-gzip extension to IIS,
Right-click Web Service Extensions, add a new Web extension. In the new Web service Extension box, enter the extension "gzip" (1) to add the "required files" C:\WINDOWS\system32\inetsrv\gzip.dll.
Figure 1
Figure 2
3. Open IIS, right click on "Web Site", "Properties", select "Services", in the "HTTP Compression" box, "Compress application Files" and "Compress static Files", set the "temporary directory" and "temporary directory Maximum Limit" (by default);
4. After restarting IIS, gzip compression is already in effect. However, the default setting of compressed file format is too few, can be further set.
5. To modify the C:\WINDOWS\system32\inetsrv\MetaBase.xml, you need to back it up first.
After you modify it, you need to pause IIS, run iisreset–stop in cmd, and then save the
6. Notepad open, find IIsCompressionScheme, there are three identical names of the paragraph, respectively, is deflate,gzip,parameters, the third paragraph does not care about it, the first two paragraphs have basically the same parameters
HcDynamicCompressionLevel, set the compression rate, the value 0~10,0 not compressed, 10 maximum compression rate, here set to 9, 9 is the most cost-effective one.
HcFileExtensions, need to compress the static file extension, the default is only Htm,html,txt, you can add Js,css,xml. It is recommended to use line breaks as the original format. HcScriptFileExtensions, you need to compress the dynamic file extension, such as add php,aspx.
7. Restart IIS after saving, gzip open successfully, can be tested with webmaster tools.
For more information, please contact Ding Feng Hu Jiashong
tel.18824258907
qq.2881064155
IIS6.0 How to turn on Configure Web site dynamic compression Technology--gzip compression function