apache config to compress html output if possible
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 27 Apr 2009 23:56:39 +0000 (23:56 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 27 Apr 2009 23:56:39 +0000 (23:56 +0000)
commit4f4c79b0fd9e7fb10c1059c90b581dfc4f35fdac
treef00a2947cdcb7132966875c351b4e71e21824105
parentdfe70494e786fc038d0f82b6e16c4b3388493a27
apache config to compress html output if possible

Enable mod-deflate to bring down all pages to under 30kB for clients
accepting gzip compression (which should be most nowadays).  Do not
bother with crappy browsers maladvertising their abilities, since we're
mostly only supporting (modern) standards-compliant behaviour.

Savings in bandwidth and load time are very significant:
digraphs 159522 -> 27734 (17%) - saves nearly 20s on 56k!
vim      107160 -> 13800 (13%)
unicode   64588 ->  8418 (13%)
charset   58682 ->  8269 (14%)
nethack   13428 ->  3396 (25%)
index      1486 ->   828 (56%)

Not compressing stylesheets, because even for base.css this would only
save 8322 bytes, at the risk of browsers being unkind.  Maybe later.
.htaccess