Best way to combine and minify JS / CSS on Heroku
问题 First of all, according to this answer, the :cache => true option on stylesheet_link_tag and javascript_include_tag doesn't work on Heroku. Is this true? I've found :cache => true to work occasionally, but not always (weird!) Also, what's the best solution here? Ideally it would seamlessly combine and minify all CSS / JS. Heroku Asset Packager claims to do this -- are there better options? 回答1: I'm using Jammit on Heroku. Works Great. You can locally build your assets and check in to heroku.