Is it somehow possible to enable dynamic compression (for WCF-Services) on an IIS-Express?
It's a development environment issue so I cannot use the full version: but I need to figure out how it would behave with compression.
In Control Panel, click Programs and Features, and then click Turn Windows features on or off. Expand Internet Information Services, expand World Wide Web Services, expand Performance Features, and then select Dynamic Content Compression and/or Static Content Compression. Click OK. Click Close.
Check the httpCompression TypesCheck the httpCompression section in applicationHost. config file, you should find <add mimeType="application/x-javascript" enabled="true" /> . If this is correct, then it should be correctly configured in your IIS. This will start compressing your .
Dynamic CompressionIn the Select Role Services pane, click Next, and then click Install in the Confirm Installations Selections pane. Click Close to exit the Add Role Services wizard.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With