Skip to content

Commit

Permalink
Update the README to be clear that this gem is only for production en…
Browse files Browse the repository at this point in the history
…vironments that do not precompile their assets
  • Loading branch information
ericallam committed Sep 2, 2016
1 parent f253884 commit d526087
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ two things:
In addition, it will also respond to the pre-flight OPTIONS requests made by
supporting browsers (Firefox).

Important
---------

This gem only works if you are **NOT** precompiling your assets in production, because it requires asset requests to go through the Rails app, and if you precompile your assets then you are most likely serving them through a web server like NGINX. If this is the case, don't use this gem but instead look into configuring the CORS headers for font requests. For example, here is a way to [do that in NGINX](http://enable-cors.org/server_nginx.html).

Install
-------

Expand Down

0 comments on commit d526087

Please sign in to comment.