I've read a lot of posts and articles and questions & answers on the Rails asset pipeline but I still haven't figured out how to turn off caching altogether.
We're using Rails 3.2.11 and in our Lab environment (similar to development) we're having a problem because even though we are not pre-compiling or fingerprinting assets in the asset pipeline they are still being cached in the Rails (Rack?) cache. This is annoying because some of the assets are ERBs that change based on other configuration so the cache gets stale. In order to try to turn off caching we've set this configuration:
config.action_controller.perform_caching = false
config.assets.compress = false
config.assets.debug = true
# just in case
config.cache_store = :file_store, "file_cache"
However, assets are showing up in tmp/cache/assets
anyway. I would at least expect them to show up in file_cache
, but I really expect them not to be cached at all.
How can we prevent these assets from being cached? Simply deleting the cache is not sufficient in this environment.
Bonus question: as long as these files are being cached, why are they in tmp/
and not in file_cache/
?