Re: Strip outgoing whitespace in html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christopher J. Bottaro wrote:
Opps, we just found mod_tidy.  :)

Christopher J. Bottaro wrote:

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?


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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux