CacheableCSRFToken allows you to easily cache Ruby on Rails pages or partials containing a CSRF protection token. The user-specific token will inserted in the HTML before the response is sent to the user.
Carl Mercier
gem "cacheable-csrf-token-rails", "~> 0.2.0"