I’m using asset pipeline for fonts (app/assets/fonts).
asset pipeline does process the fonts directory when I precompile, but
it
is not creating a gzip version for the font files (while it is creating
ones for the JS/css files).
I’m using apache + passanger for serving rails.
Is there a way to make asset pipeline create gzip file for the font
files?
Thanks,
Yuval
On Monday, May 13, 2013 7:50:41 AM UTC+1, [email protected] wrote:
I’m using asset pipeline for fonts (app/assets/fonts).
asset pipeline does process the fonts directory when I precompile, but it
is not creating a gzip version for the font files (while it is creating
ones for the JS/css files).
I’m using apache + passanger for serving rails.
Is there a way to make asset pipeline create gzip file for the font files?
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