Heroku Asset Cacher
script/plugin install http://github.com/mgomes/heroku_asset_cacher.git
This plugin will only override the requests for all.js and all.css. So please use the convention of naming your cached JS and CSS assets: all.js and all.css, respectively. (these are the default naming conventions). Here is an example:
Or you can specify individual files to cache, as such:
Files that are not included in the all.js or all.css bundle will still be served from their original directories.
Clearing the cached assets
You can run the following rake task on Heroku to regenerate your cached assets:
To run the test suite:
To try out Heroku Asset Cacher in development, you can set the following option in environment.rb:
ActionController::Base.perform_caching = true
This plugin is based off of the work by Matthew Savage in his Heroku Asset Packager plugin.
Copyright © 2010 Mauricio Gomes, released under the MIT license