This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: HttpFilter For Removing Whitespace
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Donny Mack posted
an interesting idea. Add an HTTP Filter to strip out tabs and CRs. I wonder how
much it will shrink the average page? I just might try it on a few of my sites.
One thing to keep in mind though, his algorithm is doing a naive replacement of whitespace
and carriage returns. The problem is if you have Javascript that isn't semicolon delimited.
Since it isn't required, many developers don't bother. So check your client-side script
before using this.