Rails isn't appending cache-busting timestamp to assets in production

asset-pipeline, caching, ruby-on-rails

Solution

Make sure this setting is true:

# config/environments/production.rb
config.assets.digest = true

and that you've run `rake assets:precompile`.

Problem

I'm using stylesheet_link_tag with the asset pipeline and yet I get this: ``` <link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" /> ``` My production.rb ``` config.serve_static_assets = false config.assets.compress = true ``` I'm assuming it's the settings or something simple..

Original source