I have a demo DNN website that I'm using to test service framework. The site is hosted on IIS 8.5. I have enabled dynamic content compression on the server and compression is working fine when accessing the site. However, when I access my service WebAPI compression is not working. I have modified (C:\Windows\System32\inetsrv\config\applicationHost.config) as suggested on other forums to have the following:
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/atom+xml" enabled="true" />
<add mimeType="application/xaml+xml" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/xml; charset=utf-8" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" />
<!-- <add mimeType="*/*" enabled="false" /> -->
</staticTypes>
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/x-javascript" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/xml; charset=utf-8" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" />
<!-- <add mimeType="*/*" enabled="false" /> -->
</dynamicTypes>
</httpCompression>
and restarted IIS after modifying the file without success.
http://54.174.210.20/lilypad/ ----->> is compressed
but not http://54.174.210.20/lilypad/desktopmodules/DataExchange/API/Example/GetData
Am I missing something?