Update: Further testing shows that gzipping is on by default at Mosso. So you don’t actually need to add the below code at all.
I’ve recently switched to Mosso and i love it, but their Compute Cycles metric (which is just being rolled out) is still a little ... opaque. I have, however, found something really important as far as keeping usage down: turn *off* GZIP output in Admin -> System Preferences -> Output and Debugging Preferences. This setting causes EE to eat Compute Cycles like there is no tomorrow.
If you still want your output GZIPped (and you really do! It really is important for bandwidth savings), do it using Apache’s built-in modules by adding the following to your .haccess file (remove whichever of the two you don’t need—MOSSO is gradually rolling out Apache 2.x, some people are still on 1.3x):
# THE FOLLOWING TWO BLOCKS ARE MUTUALLY EXCLUSIVE. IF YOU KNOW WHAT SERVER VERSION YOU ARE RUNNING ON,
# YOU SHOULD DELETE THE ONE THAT ISN'T NEEDED.
# GZIP FOR APACHE 1.3.x SERVERS
<IfModule mod_gzip.c>
mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.txt$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include file \.js$
mod_gzip_item_include file \.css$
mod_gzip_item_include file \.rdf$
mod_gzip_item_include file \.xml$
mod_gzip_item_include file \.rss$
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^application/x-javascript
mod_gzip_item_include mime ^application/javascript
mod_gzip_item_include mime ^text/css$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^text/xml$
</IfModule>
# DEFLATE FOR APACHE 2.x SERVERS
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/x-javascript application/javascript application/xhtml+xml
<FilesMatch "\\.(js|css|html|htm|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>(Note: There’s some redundancy, and I’m aware of it; it’s because Apache sometimes gets confused about MIME types, so it’s better to overspecify. YMMV, but this is my personal .htaccess configuration that goes on *all* my sites; i prefer overkill.)