As far as I can tell this is just hard coded into action pack:
https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/sprockets/static_compiler.rb#L40
If I remember correctly, it’s quite tricky to get apache to use the pre-gzipped files - you might find it sufficient to have apache gzip them on the fly
Fred