Using compression in your development environment

When you make changes to your site in Visual Studio, you want to know the effect those changes have on file sizes, both before and after compression. Unfortunately, the Cassini development server included with Visual Studio doesn't support compression. So, you'll need to use IIS instead of Cassini during development.

Making this happen involves a simple four-step process:

  1. Installing IIS 7.
  2. Enabling compression.
  3. Creating a development site in IIS.
  4. Modifying your project so it uses the development site.

To use Visual Studio with IIS, you need to run Visual Studio in administrator mode. If you are not normally logged in as administrator, right-click on the Visual Studio executable file and choose Run ...

Get ASP.NET Site Performance Secrets now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.