Created
October 27, 2015 04:52
-
-
Save blacktambourine/d283f65706482449bf46 to your computer and use it in GitHub Desktop.
Web API JSON Dynamic Compression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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