Re: Strip outgoing whitespace in html
| From: | Adam Zey | Date: | Mon, 26 Jun 2006 16:59:02 +0000 |
| Subject: | Re: Strip outgoing whitespace in html | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238643@lists.php.net to get a copy of this message | ||
Christopher J. Bottaro wrote:
Opps, we just found mod_tidy. :) Christopher J. Bottaro wrote:Also consider mod_gzip (or mod_deflate), they will get you a LOT more space savings than mod_tidy will, and should still work with every browser made in the past decade or so ;) From what I've seen, the CPU load induced by compression is quite small, at least on my test site that had about a quarter million pageviews (hence compressed documents) per day. Definitely worth the enormous bandwidth savings! Regards, Adam Zey.I'm wondering if there's a convenient way to globally add a final step for apache w/php that will remove unnecessary whitespace from text/html before it gets sent to the client. Some sort of global config like thing would be ideal. For what it's worth we're using the smarty template engine too, but I suppose I'd prefer a solution that doesn't depend on it. Maybe something like another AddHandler?