Strip whitespace from HTTP output?

software development

#1

Hello,

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).

Thanks,

Chris


#2

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: