Page 1 of 1
HTML Compressor
Posted: Fri Jun 27, 2008 7:01 pm
by viebig
Compress the HTML, generating smaller pages and saving a few kbytes, should be optional
Re: HTML Compressor
Posted: Fri Jun 27, 2008 7:34 pm
by calguy1000
It's in 1.4
Re: HTML Compressor
Posted: Fri Jun 27, 2008 7:40 pm
by kermit
if you're just talking about removing whitespace and extra lines, there's a couple smarty ways to do that in your templates..
see
http://www.smarty.net/docs.php
if you're talking about gzip compression of the html output, there's a quick mod to index.php that'll do that..
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
else ob_start();
// original line below:
# ob_start();
Re: HTML Compressor
Posted: Fri Jun 27, 2008 8:04 pm
by viebig
great, ty guys!
MODs are great, but i do prefer native features.
kermit, by the way.. full page caching is great!
Re: HTML Compressor
Posted: Tue Jul 01, 2008 10:22 pm
by Pierre M.
HTTP compression is a native webserver feature. No need to reimplement it whatever the CMS behind.
Pierre M.
Re: HTML Compressor
Posted: Wed Jul 02, 2008 1:06 am
by kermit
Pierre M. wrote:
HTTP compression is a native webserver feature. No need to reimplement it whatever the CMS behind.
not always enabled on shared servers......
Re: HTML Compressor
Posted: Wed Jul 02, 2008 6:04 am
by cyberman
viebig wrote:
Compress the HTML, generating smaller pages and saving a few kbytes, should be optional
There's a (very old) module in SVN - not sure if it works with current versions
http://dev.cmsmadesimple.org/projects/codemangler/
Re: HTML Compressor
Posted: Wed Jul 02, 2008 8:40 am
by viebig
I dont see any files there!
Re: HTML Compressor
Posted: Wed Jul 02, 2008 8:51 am
by cyberman