views:

114

answers:

1

How can i change static and dynamic compression for my asp.net website? i use DiscountAsp on IIS 7 servers and i don't think they could let me change the compression level on the appHostSetting file. Can something be done in the web.config file to change that level?

A: 

The new System.IO.Compression namespace in .NET 2.0 makes it easy to implement HTTP compression without having to touch IIS.

All you have to do to web.config is add this:

<httpModules>
    <add type="CompressionModule" name="CompressionModule" />
</httpModules>

See more here: Compression in ASP.NET 2.0

p.campbell
and can i programmatically decide which level of compression i want?
zaladane