Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add task to clean only outdated assets #5782
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.
referenced this pull request
Apr 8, 2012
@tenderlove this is prob a dumb question, but just wanted to make sure that