Page optimization (HTTP Compression)

Icon HTTP compression allows ASP.NET applications to deliver compressed Web pages, reducing the required network bandwidth. WAO will compress dynamic and static content and cache it on the client-side. Server-side CPU load is reduced because most of the files will not be compressed repeatedly.

  • Gzip and Deflate algorithms supported by all commonly used browsers
  • Flexible provider model that lets you choose from several built-in providers or to create your own
  • Fully configurable
    • Ability to exclude specific MIME types
    • Ability to exclude application paths


Optimization performance

Page / Response not optimized

Page / Response optimized


Quick guide to WAO HTTP optimizer implementation
  • Register a WAO SectionGroup in your web.config: <sectionGroup name="MonoSoftware.Web.WAO"> ... <section name="HttpCompress" type="MonoSoftware.Web.WAO.HttpCompress.Configuration.HttpCompressConfiguration, MonoSoftware.Web.WAO"/> ... </sectionGroup>
  • Register a WAO Section in your web.config, and configure the HTTP optimizer: Please read the documentation for more information about provider settings <MonoSoftware.Web.WAO> ... <HttpCompress turnedOn="true" defaultProvider="Deflate" useCaching="true" > <providers> <clear/> <!--compressionLevel="high|normal|low|none"--> <!--Note: If you use None as compression level you will turn off the http compressions--> <add name="Deflate" type="MonoSoftware.Web.WAO.HttpCompress.Providers.DeflateProvider, MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;"/> <add name="GZip" type="MonoSoftware.Web.WAO.HttpCompress.Providers.GZipProvider, MonoSoftware.Web.WAO" customProperties="CompressionLevel=High;"/> </providers> <ExcludedMimeTypes> <clear/> <add name="png" type="image/png"/> <add name="jpeg" type="image/jpeg"/> <add name="gif" type="image/gif"/> <add name="zip" type="application/zip"/> <add name="x-zip-compressed" type="application/x-zip-compressed"/> <add name="x-gzip-compressed" type="application/x-gzip-compressed"/> <add name="x-compressed" type="application/x-compressed"/> <add name="octet-stream" type="application/octet-stream"/> <add name="pdf" type="application/pdf"/> </ExcludedMimeTypes> <ExcludedPaths> <clear/> <!--Example--> <!--<add name="WebResource" path="WebResource.axd"/>--> </ExcludedPaths> </HttpCompress> ... </MonoSoftware.Web.WAO>
  • Enable the HTTP optimizer by adding the following code to the Http modules section: <httpModules> ... <add name="CompressionModule" type="MonoSoftware.Web.WAO.HttpCompressProvider.HttpCompressModule, MonoSoftware.Web.WAO"/> ... </httpModules>

We recommend using   to perform tests that are described on this page.