★ 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