Compress the Response Content in ASP.NET MVC

Developers often minify JavaScript and CSS files in an attempt to improve the performance of their ASP.NET MVC application. In addition to minifying JavaScript and CSS files you can also pay attention to reducing the size of the HTML response. You may minify the HTML output from a view or you may compress the output (you can also use both together). To that end this article shows how to compress HTML response by writing a custom action filter.

http://www.binaryintellect.net/articles/1b60420c-39ca-4f01-9813-0951e553e146.aspx