[Windows Server 2003] Web page gzip compression

Source: Internet
Author: User
Tags metabase

★ Welcome to The Guardian God · V Classroom, website address: http://v.huweishen.com
★ Guardian God · V Classroom is a Web site dedicated to providing server instructional video for the Guardian God, updated weekly video.
★ This section we will lead everyone: Enable site gzip compression
· Gzip high-efficiency compression of web pages, the general compression ratio of more than 50%, both to reduce the transmission of traffic, but also to improve access
Speed.
• No effect on image files (gif/jpg) because the files themselves are compressed.

1. Enable gzip compression
• Services, Property----right-click on the:iis-> website
• If you change the location of the temp directory, be aware that the new directory is added with the Everyone read and write delete permission.

2. Configure the Web extension
· Gzip File path: C:\WINDOWS\system32\inetsrv\gzip.dll

3, Configuration MetaBase.xml
• Before: C:\WINDOWS\system32\inetsrv\MetaBase.xml, note back up and stop the IIS service before changing
Locate location = "/lm/w3svc/filters/compression/gzip" To set gzip compression
Locate location = "/lm/w3svc/filters/compression/deflate" for setting deflate compression
Both of these properties require that the changes be synchronized as follows.
• Turn on static file compression
Set HcDoStaticCompression to TRUE
Set HcDoOnDemandCompression to TRUE
Add static file suffix names, such as XML, CSS, HTML, HTML, JS, etc., that need to be compressed in hcfileextensions

• Turn on dynamic file compression
Set HcDoDynamicCompression to TRUE
Add dynamic file suffix names that need to be compressed in hcscriptfileextensions such as ASP, PHP, ASPX, etc.

· HcDynamicCompressionLevel and HcOnDemandCompLevel indicate the required compression rate, the value is 0-10, the Internet
Recommended for 9

4. Test results
• Use http://tool.chinaz.com/gzips/to test, because I am a remote connection server, in order not so card, so
Suppresses the display of pictures
• Successful gzip compression

Now that this section is over, please visit the Guardian God website (www.huweishen.com) for more instructional videos.

Reprint please indicate the source (http://v.huweishen.com/video/26.html) Thank you!

[Windows Server 2003] Web page gzip compression

Related Article

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.