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.

 

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%\inetpubtemp\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>