Is it somehow possible to enable dynamic compression (for WCF-Services) on an IIS-Express?
It's a development environment issue so 开发者_Go百科I cannot use the full version: but I need to figure out how it would behave with compression.
Go to IIS Express installation folder (%programfiles%\IIS Express) and run the following command to enable dynamic compression.
appcmd set config -section:urlCompression /doDynamicCompression:true
Then add mime-types. Run following commands to add wildcard entries or take a look at http://www.iis.net/ConfigReference/system.webServer/httpCompression to add specific mime-types
appcmd set config /section:httpCompression /staticTypes.[mimeType='*/*'].enabled:"true" /commit:apphost
appcmd set config /section:httpCompression /dynamicTypes.[mimeType='*/*'].enabled:"true" /commit:apphost
I found the configfile in Documents/IISExpress/config/applicationhost.config: here in the httpCompression-Section you can define the mime-types to use for dynamic compression.
精彩评论