Skip to content

Instantly share code, notes, and snippets.

@blacktambourine
Created October 27, 2015 04:52
Show Gist options
  • Save blacktambourine/d283f65706482449bf46 to your computer and use it in GitHub Desktop.
Save blacktambourine/d283f65706482449bf46 to your computer and use it in GitHub Desktop.
Web API JSON Dynamic Compression
<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="*/*" 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="*/*" enabled="false" />
<!-- compress JSON responses from Web API -->
<add mimeType="application/json" enabled="true" />
</dynamicTypes>
</httpCompression>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment