IIS turn on gzip compression efficiency comparison and Deployment method summary _win Server

Source: Internet
Author: User
Tags metabase
The biggest benefit of compression is that it reduces the amount of data transferred by the network, thereby increasing the access speed of the client browser. Of course, it will also add a little bit of server burden. Gzip is a more common kind of HTTP compression algorithm.

Compression test

Gzip compression is configured on the deployed IIS 6.0, with detailed test results as follows.
Before the gzip compression is turned on, visit the homepage of the website to carry on the bag analysis.

Open gzip, empty the local IE cache, again access to GRASP packet analysis.

Before and after, the page size decreased by 89213bytes, compressed 87% of the original size.
When the CSS, JS and other files are open gzip compression, the original 21100bytes file, compressed as shown in the figure, compression ratio of 80%.

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

Deployment methods

1. Open Internet Information Services (IIS) Manager, right-click Web site-> properties, and select Services. In the HTTP Compression box, select Compress application files and compress static files, and set the maximum limit for temporary directories and temporary directories as needed;

2. In Internet Information Services (IIS) Manager, right-click "Web Service Extensions"-> "Add a new Web service extension ...", in the new Web service Extension box, enter the extension "HTTP Compression" and add "required files" as C:\ Windows\system32\inetsrv\gzip.dll, where the Windows system directory may vary depending on your installation, select "Set extension status to allow";

3. Use a text editor to open C:\Windows\System32\inetsrv\MetaBase.xml (recommended to back up first),
Find location = "/lm/w3svc/filters/compression/gzip used to set gzip compression,
Find location = "/lm/w3svc/filters/compression/deflate" to set deflate compression. The top two nodes are next to each other. And the properties set are the same.
If you need to compress a dynamic file, set HcDoDynamicCompression to TRUE.
And in HcScriptFileExtensions, add the dynamic file suffix name, such as ASPX, that you want to compress;
If you need to compress a static file, set HcDoStaticCompression and HcDoOnDemandCompression to "TRUE".
and add the static file suffix names, such as XML, CSS, and so on, that you want to compress in HcFileExtensions;
HcDynamicCompressionLevel and HcOnDemandCompLevel indicate the desired compression rate, with a value of 0-10 and a default of 0.
HcDynamicCompressionLevel Property Description: HcDynamicCompressionLevel Metabase property 
HcOnDemandCompLevel Property Description: HcOnDemandCompLevel Metabase property 
Description: These two property values are generally recommended to set to 9, with the best price/performance ratio.

Note 1. You need to stop IIS before editing MetaBase.xml, and you can use net stop IISAdmin
2. After the modification is complete, open the IISADMIN service and perform the I Isreset command
about SEO test whether the compression has an impact on the SEO, after testing, open can still be very good included.
for a research article on the impact of SEO, you can also refer to the following articles.
Specific efficiency issues will continue to be monitored for research.
Article link:
1. Real-time gzip compression optimization asp.net page compressionmodule to asp.net ajax and search engine compatibility test!.
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/

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.