Comparison of gzip compression efficiency enabled by IIS and deployment method reprinted

Source: Internet
Author: User
Tags metabase

Article Source

HTTP compression is a method for transmitting compressed text content between web servers and browsers. HTTP compression adopts common Compression Algorithm Such as gzip to compress HTML, JavaScript, or CSS files. The biggest advantage of compression is that it reduces the amount of data transmitted over the network and increases the access speed of the client browser. Of course, it also adds a little load on the server. Gzip is a common HTTP compression algorithm. Gzip compression is configured on the deployed IIS 6.0. The detailed test results are as follows.
Before gzip compression is enabled, visit the website homepage for packet capture analysis.

After Gzip is enabled, clear the local ie cache and access the packet capture analysis again.

Before and After enabling, the page size is reduced by 89213 bytes, and the original size is reduced by 87%.
After gzip compression is enabled for CSS, JS, and other files, the original 21100bytes files are compressed with a compression ratio of 80%.

In Http://www.port80software.com/tools/compresscheck.asp The test results are as follows.

Deployment method 1. Open the Internet Information Service (IIS) manager, right-click "website"-> "properties", and select "service ". Select "compression application" in the "HTTP compression" box. Program Files "and" compressed static files ", set" temporary directory "and" maximum temporary directory limit "as needed ";

2. in the Internet Information Service (IIS) manager, right-click "Web Service extension"-> "to add a new Web Service extension... ", enter the extension" HTTP compression "in the" New web service extension "box, and add" required file "to c: \ windows \ system32 \ inetsrv \ gzip. DLL, the Windows System directory may vary depending on your installation, select "set extension status to allow ";

3. Open c: \ windows \ system32 \ inetsrv \ metabase. XML in a text editor (backup is recommended ),
Locate location = "/lm/w3svc/filters/compression/gzip to set gzip compression,
Locate location = "/lm/w3svc/filters/compression/deflate" to set deflate compression. The above two nodes are next to one another and the Set attributes are the same.
To Compress dynamic files, set hcdodynamiccompression to "true ",
Add the dynamic file suffix you want to compress in hcscriptfileextensions, such as aspx;
To Compress static files, set hcdostaticcompression and hcdoondemandcompression to "true ",
Add the extension name of the static file to be compressed in hcfileextensions, such as XML and CSS;
Hcdynamiccompressionlevel and hcondemandcomplevel indicate the required compression ratio. The value ranges from 0 to 10. The default value is 0.
Hcdynamiccompressionlevel attribute description: hcdynamiccompressionlevel metabase Property
Hcondemandcomplevel attribute description: hcondemandcomplevel metabase Property
Note: These two attribute values are generally recommended to be set to 9, with the best cost effectiveness.

Note 1: You need to stop IIs before editing metabase. xml. You can use net stop IISADMIN
2. After the modification is complete, enable the IISADMIN service and execute the iisreset command.
Whether Seo compression test has an impact on Seo. After testing, it can still be well recorded after it is enabled.
Research on Seo impact Article , You can also refer to the following articles.
Specific efficiency issues will be monitored for further research.
Article link:
1. perform real-time gzip compression and optimize the ASP. NET page's compressionmodule to test ASP. NET Ajax and search engine compatibility !.
Http://www.cnblogs.com/aspxcn/archive/2009/02/03/1037924.html
2. Matt Cutts: gadgets, Google, and Seo
Http://www.mattcutts.com/blog/crawl-caching-proxy/ Author: Parry
Source: Http://www.cnblogs.com/parry/
The copyright of this article is shared by the author and the blog Park. You are welcome to repost this article. However, you must retain this statement without the author's consent and provide a clear link to the original article on the article page. Otherwise, you will be held legally liable.
Magnolia Education Entry: Yu junxiong, responsible editor: Hope

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.