I love the CachedAssets plugin for rails. This plugin bundles all your css files into one and all your js files into one which helps make fewer http requests, ultimately making your site respond faster.

The cached assets plugin does a great job of combining the assets, but the one flaw is that the resulting file is simply the MD5 Sum of the file names of the assets to be joined together. No matter the contents or the time-stamp of the asset files, the resulting name never changes. Browsers tend to cache these files, which is good, but not when you made some recent changes. I made a few adjustments to the cached assets plugin to name the resulting file based on the MD5 Sum of the asset files' last modified times. Now the name is guaranteed to be different if something has changed.

Here is a diff of what the plugin gives us and what changes I have made:

I am not sure the plugin's intent, but I am sure it was designed to simply combine all the assets together, not to worry about browser caching. I am pretty sure that this plugin in combination with Asset Timestamping plugin would maybe do the trick, in the sense that the filename (resulting from the cached assets plugin) would never change and the asset timestamping plugin would append a timestamp to the end of the asset name, I.e. ?1147898838. There is a problem with this though and it is discussed in great detail in the Optimizing Page Load Time Article.
This article states that in order for the browser to ALWAYS cache the file (which we really, really want until we change the name) then we need to stay away from the use of question mark timestamping. So I believe I have presented the solution that best meets my requirements of having one css file, one js file and a way to avoid the stale browser cache when modifications have been made.