Questions answered by this recipe
How can I compress PmWiki's html output?
HtmlCompress compresses PmWiki's html output, and can be used in conjunction with JsCompress and CssCompress for higher compression.
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:
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.
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 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.