Cache public/assets, and retain old assets until a given expiry time #42

wants to merge 1 commit into


None yet

2 participants


From cgriego's comment on a capistrano issue:

The assets recipe implements the deployment guidelines that came from the Rails guides and DHH's RailsConf keynote on the pipeline. The shared assets across deploys guideline, I think, came exclusively from the keynote. Sharing assets allows seamless continuous deploys that the user will not have to know went out in the middle of them using the site.

Old assets need to be retained after deploys, because a user might still be fetching a page that relies on the older versions of assets. Since asset URLs have a unique fingerprint hash, this would result in a 404 error, and broken websites.

This pull request also provides support for my turbo-sprockets-rails3 gem, which speeds up asset compilation by only recompiling changed assets.


Closing this one in favor of #44

@schneems schneems closed this Nov 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment