Admin-Ahead Community

Windows => General Windows => Topic started by: Chetan Singh on February 01, 2014, 01:34:16 pm

Title: Enable Gzip from Web.config file.
Post by: Chetan Singh on February 01, 2014, 01:34:16 pm
Hi,

You can enable Gzip compression from the IIS as well as Web.config file. Please add the following to the web.config file in <system.webServer> tag.

=====================>>>
<!--Runs Gzip-->
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary
Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</staticTypes>
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
=====================>>>

Thank you,