Strip whitespace from HTTP output?

software development



Does anyone know of an easy way to strip the extra whitespace out of PHP, JS and CSS pages returned upon HTTP requests? (e.g. like google pages do to save on bandwidth).




If you mean on the fly you could use a script (PERL, etc.)

This is not necessary btw. The content is compressed serverside automagically before being sent :wink: