I have a Rails 4 app running on the Ceder Stack of Heroku. I use conditional responses based on etag. I have an initialization script which changes the etag value so that each new release requires browser to renew cache:
# creates new seed for creation of etag in header
ENV["RAILS_CACHE_ID"] = Time.now.to_s
これはステージングでは問題なく機能しますが、本番環境では複数の dyno を使用しており、最終的に異なる値になる可能性があります。
リリースごとに一意であるが、すべての dyno で同一の、使用できる変数はありますか? おそらくgitのバージョン番号?洞察を事前に感謝します。