Rants, rambles, news and notes from another geek

HttpFilter for Removing Whitespace

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.