I've wanted to Gzip the static content (CSS & Javascript) on my sites for a long time but never found a good enough solution. mod_gzip
is out of the question because as far as I've understood it it does a compression on the fly, every time you request the file.
Other solutions have disappointed me because enabling gzip compression has been for all content. I don't want my HTML files gzipped because they're rendered on the fly based on business logic plus by compressing the HTML files. Long story short my yet-to-be-released app now serves the following files from Zope but are only compressed and whitespace slimmed once per server restart:
FILE ORIG SIZE NEW SIZE REDUCTION
screen.css 15224 2738 556%
print.css 2633 885 298%
jquery-latest.js* 57712 18130 318%
jquery-latest.pack.js 20461 10513 195%
common.js 3803 1131 336%
complete-expense.js 18184 2847 639%
Total 118017 36244 326%
* only used in debug mode