(See updated post: Compress your pages, css, js and WebResources.axd files for better performance)
I will not be long with words, becouse lot of good articles about http compression are all around the internet.
ASP.NET gives us the great ability to filter the data that passing between the server and the client. One of the powerfull uses of that ability
is to compress that data.
Almost all of the latest versions of the browsers support http compression "built-in" in their side (the client side),
So, that is there to be used !
I build my http module to be as simple as posible, and added comments that it will be understandable to most of the readers.
The module will check the compression type that the client support (if at all) and use that type to compress the results of the page response,
or the WebResourse.axd content that need to be sent to the client.
Also, you can configure (using the web.config file - See ReadMe.txt file) to specified mime types that generated by the page to be exclude
and not be compressed, or specified specific pages to also be exclude from the compression.
I added support for MS-AJAX by disable the compression for ajax post-backs, but I never tested it with another AJAX framework,
so any comments about that will be happily receive.
Fill free to use this module on your own risk, and without any guarantee or warranty.
Any comments will be happily receive !
Compressing WebResource.axd files will increae your score in YSlow performance check ;-)
Full Source code:
See update source in the post:
New & Shiny WebResource.axd compression Module