HtmlCompress
After some more tests I have discovered problems in the cache mecanism, so please, look for other cache recipes like FastCache for now. HtmlCompress now provides ONLY compression of html output (plus in page javascript and css) from version 20110417 and forward.
Questions answered by this recipe
How can I compress PmWiki's html output?
Description
HtmlCompress compresses PmWiki's html output, and can be used in conjunction with JsCompress and CssCompress for higher compression.
Installation
Just unzip the htmlcompress zip file and place the script inside the cookbook folder. Edit your config.php file to include_once the recipe, like this:
or, if you are using a farm:
$FarmD
/cookbook/htmlcompress.php");
Configuration
HtmlCompress does the basic compression so you can use Apache's mod_deflate to serve pages with even more compression.
See Coding horror for an explanation on why to prefer mod_deflate instead of mod_gzip.
Usage
Notes
The recipe expects well formed html, css and javascript in every page and will not fix errors.
Change log / Release notes
htmlcompress-20110417Δ - Removed the cache feature and a new implementation is planned for the future. HtmlCompress will do only compression of html for now. Also removed the action=htmlcompress and compression will be provided only on browsing activity.
htmlcompress-20110416Δ - first release.
See also
Contributors
Comments
See discussion at HtmlCompress-Talk?
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.