Enable Gzip compression in ASP.NET using web.config configuration.

configuration. web.config using ASP.NET in compression Gzip Enable

Add the configuration shown below in the in web.config file. This configuration setup enable gzip compression on static and on dynamic content.

 

<system.webServer>
  <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"/>
</system.webServer>


Pingbacks and trackbacks (1)+

11/23/2010 6:50:11 PM #
Pingback from topsy.com

Twitter Trackbacks for
        
        Enable Gzip compression in ASP.NET using web.config configuration.
        [am-blog.no-ip.org]
        on Topsy.com
Comments are closed