开发者

Activating Compression (esp. Dynamic Compression) with IIS-Express

开发者 https://www.devze.com 2023-03-16 23:57 出处:网络
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 ou

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号