rails/rails — pull request #5782 by rhulse (2012-04-08 23:36:53+00:00)
Title: Add task to clean only outdated assets

This covers the use-case where pages on the site have cache headers of (say) 5 minutes, and as a result remote clients still have references to assets from the most recent deploy.

In cases were the remote client has a cached copy of the page, but does not have a cached copy of the associated assets, the page will render with no CSS or JS after a deploy where the current clean task was used.

This new task keeps files from the most recent deploy (those in the manifest), and you precompile on top of those.

See #2962