We know that gzip compression is a very good thing, it can greatly save the bandwidth of the server. Gzip compression is mainly for HTML and other text files, its compression ratio is very high. A 100KB Web page that may be compressed to only 10-20kb, bandwidth usage will drop by 90%. Enabling gzip by consuming a certain amount of CPU and memory resources can be said to be a cost-effective thing.
So how do I turn on gzip compression?
Let's talk about how Windows 2008 works, and Windows 2008 runs IIS7.5.
A, plus a server extension: Internet Information Services (IIS) Manager >> Web Service Extensions >> add a new Web service extension ">>" extension "casually fill >>" Required file "add" c:/ Windows/system32/inetsrv/gzip.dll ">> Check" set extension status to allow ">> OK";
B, IIS-enabled HTTP compression: Internet Information Services (IIS) Manager >> right-click Web site >> Properties >> Services >> Check "Compress application Files" and "Compress static Files" > > "Temp directory" can manually specify the directory >> "OK" with "IUSR_ Machine name" Write permission;
C, add the default unsupported dynamic paging file (aspx): Open "C:/windows/system32/inetsrv/metabase.xml" with Notepad >> find "IIsCompressionScheme" three-segment configuration >> Modify the "hcdynamiccompressionlevel" parameter of "deflate" and "gzip" to "9" and add "aspx" to the "hcscriptfileextensions" argument >> Stop the IIS service >> save the MetaBase.xml that you just changed and replace >> start the service in IIS Manager in IIS Manager.
Then talk about the IIS6 settings on Windows 2003.
1. Open IIS
2, right click on the left navigation bar on the "site" two words, select Properties, you can open the global Web Site Properties Settings dialog box.
3, click on the "Services" tab, here is about gzip related settings.
4, under the HTTP compression, check "Compressed application Files" (that is, dynamic files) and "Compressed static file", you can turn on gzip compression.
5, other settings like IIS7.5, you can set the temporary file path and so on.
About gzip compression, Hongo introduced here, hope to help everyone.