Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 728
MADMap Avatar asked Jul 04 '11 14:07

MADMap


People also ask

How do I enable dynamic content compression in IIS?

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.

How do I enable gzip compression in IIS?

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 .

How do I install dynamic content compression in IIS 7?

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.


2 Answers

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
like image 70
vikomall Avatar answered Oct 08 '22 19:10

vikomall


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.

like image 36
MADMap Avatar answered Oct 08 '22 20:10

MADMap