1. Click Start-Administrative Tools-Internet Information Services (IIS) Manager to open IIS Manager;
2. In IIS Manager, open the Web Site > Properties dialog box, switch to the Services tab, select Compress application files and compress static files, and set the maximum capacity of the temporary directory as appropriate, initially limiting to around 1G. 1 is shown below:
3. Return to Internet Information Services (IIS) Manager, right-click Web Service Extensions, select Add a new Web service extension (a), enter the extension "Gzip" in the "new Web service Extension" box, and add "required files" to C:\WINDOWS\ System32\inetsrv\gzip.dll, where the Windows system directory may vary depending on your installation, and also select the set extended status to allow
4, use Notepad and other text editor to open C:\Windows\System32\inetsrv\MetaBase.xml, find "IIsCompressionScheme", according to the following methods to modify, save. (Backup is recommended before modification)
If you need to compress dynamic files, set HcDoDynamicCompression to "TRUE" and add the dynamic file suffix names you want to compress in hcscriptfileextensions, such as ASPX, PHP, JSP, and so on.
If you need to compress the static files, set HcDoStaticCompression and HcDoOnDemandCompression to "TRUE" and add the static file suffix names that you need to compress in hcfileextensions. Static file types such as shtm, shtml, JS, CSS, SWF, Mid, XML, MP3, etc.
5. Enter "net stop iisadmin/y" to stop the IIS service and save MetaBase.xml after running.
6. Restart the IIS service by entering "IISReset" in the run.
Query compression address: http://tool.chinaz.com/Gzips/
From for notes (Wiz)
Windows2003 IIS to turn on gzip web compression