Stop serving assets from your own nginx instance. Instead, let Cloudfront CDN do it for you.
Steps:
- Read http://ryantownsend.co.uk/post/13126016608/cloudfront-cdn-on-rails
- Set up your nginx virtual host according to the snippet I've included in nginx_vhost.conf
- Set up your rails app to use an asset host as described in the article. I've included my config in production.rb
- Deploy your app and restart your nginx.
Enjoy!