Web.Config should include the following variables in order for the HTTP Compression Module to run,
If no variables added then the module will not run and HTTPCompressionActive will be set to "false".
STEP 1 : Add the following entries in the "<appSettings>" section of "<configuration>"
<!-- HTTPCompressionModule Variables -->
<add key="HTTPCompressionActive" value="true" />
<add key="HTTPCompressionCompressPostBacks" value="false" />
<add key="HTTPCompressionCommaSeparatedAllowedMIMETypes"
value="text/html, text/css, application/x-javascript, text/javascript, text/plain, text/xml" />
<add key="HTTPCompressionCommaSeparatedAllowedResponseStatusCodes" value="200, 304" />
<add key="HTTPCompressionCommaSeparatedExcludedPathAndFileNames"
value=".axd, NoCompression.aspx" />
<add key="HTTPCompressionInternetExplorerMinimumAllowedVersion" value="6.0" />
<add key="HTTPCompressionTestModeOnly" value="false" />
STEP 2 : Add the following entries in the "<system.webServer>" section of "<configuration>"
<!-- Disable other HTTP compressions to avoid compression conflicts on IIS 7 and above -->
<urlCompression doStaticCompression="false"
doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
STEP 3 : Add the following entries in the "<httpModules>" section of "<system.web>"
<!-- Register HTTP modules for IIS 6.0 and IIS 7.0 running in Classic mode -->
<add name="HTTPCompressionModule"
type="MicroMighty.SDK.Web.HttpModules.HTTPCompressionModule" />
STEP 4 : Add the following entries in the "<modules>" section of "<system.webServer>"
<!-- Register HTTP modules for IIS 7.0 running in Integrated mode -->
<add name="HTTPCompressionModule"
type="MicroMighty.SDK.Web.HttpModules.HTTPCompressionModule" />
The default settings above are suggested in order to make sure that your compression module will work smoothly
with other web content such as AJAX requests that may already contain compressed data.
This HTTP Compression Module allow turning on and off some compression features, however,
if you choose to modify the defaults then please test it carefully (especially AJAX enabled pages).
Depends on your IIS settings - you may need to enforce HTTP modules on HTML and maybe other files,
By default ASPX files are processed through the ASP.NET pipeline, however, you may need to configure IIS to
route HTML files (and maybe other files) through the
ASP.NET pipeline or move to
IIS Integrated Mode.