O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Compression

Using compression is the single most important way to reduce load times. The .aspx files sent by the server to the browser consist of HTML. HTML is highly compressible by algorithms such as GZIP. Because of this, modern web servers, including IIS 5 and later, have the ability to compress outgoing files, and modern browsers have the ability to decompress incoming files.

A disadvantage of compression is that it is CPU-intensive. Because of this, IIS 7 by default compresses only static files, because their compressed versions are cached. Dynamic files, however, may be different for each request and therefore cannot be cached easily by IIS. So, they are not compressed by default.

In this chapter, we'll go through the following: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required