yuval.carmel-wn7gVt/QjrhBDgjK7y7TUQ@public.gmane.org
2013-May-13 06:50 UTC
gzip fonts with asset pipeline
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/lsnoiv0lBFwJ. For more options, visit https://groups.google.com/groups/opt_out.
On Monday, May 13, 2013 7:50:41 AM UTC+1, yuval....-wn7gVt/QjrhBDgjK7y7TUQ@public.gmane.org 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/cmUwV8OjMM0J. For more options, visit https://groups.google.com/groups/opt_out.