Compress ttf files

100 views
Skip to first unread message

bparanj

unread,
Jan 5, 2016, 8:45:49 PM1/5/16
to Moonshine
I have custom fonts in app/assets/fonts directory in my Rails 4.2.5 app. I see configuration[:apache][:gzip_types] in apache.rb that generates this file:

<IfModule mod_deflate.c>

          # these are known to be safe with MSIE 6

          AddOutputFilterByType DEFLATE text/html text/plain text/xml


          # everything else may cause problems with MSIE 6

          AddOutputFilterByType DEFLATE text/css

          AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript

          AddOutputFilterByType DEFLATE application/rss+xml

</IfModule>


on the server. So gzip is enabled by default on the server. My question is how do I add ttf font files to the gzip compression list? Should I say:


  configure({

    :apache => [ 'ttf'  ]

   })


in the application manifest file? TIA.


Reply all
Reply to author
Forward
0 new messages