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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.