Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / IIS

Dynamic Compression in IIS 7

0.00/5 (No votes)
26 Jul 2011CPOL 11.5K  
For IIS7.5, an alternate method to enable compression is to run the following commands in a terminal:To enable compression for both dynamic and static content:C:WindowsSystem32InetsrvAppcmd.exe set config -section:urlCompression -doStaticCompression:true -doDynamicCompression:true...
For IIS7.5, an alternate method to enable compression is to run the following commands in a terminal:

To enable compression for both dynamic and static content:

C:\Windows\System32\Inetsrv\Appcmd.exe set config -section:urlCompression -doStaticCompression:true -doDynamicCompression:true 


To set the compression level to 7 for dynamic, and 9 for static content:

C:\Windows\System32\Inetsrv\Appcmd.exe set config -section:httpCompression -[name='gzip'].staticCompressionLevel:9 -[name='gzip'].dynamicCompressionLevel:7 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)