Skip to content

Instantly share code, notes, and snippets.

@DWboutin
Created January 14, 2014 21:41
Show Gist options
  • Save DWboutin/8426345 to your computer and use it in GitHub Desktop.
Save DWboutin/8426345 to your computer and use it in GitHub Desktop.
web.config GZIP compression Add the configuration shown below in the in web.config file. This configuration setup enable gzip compression on static and on dynamic content.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<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>
</system.webServer>
</configuration>
@BUYRAK
Copy link

BUYRAK commented Feb 20, 2020

thank's its so good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment