Cache HTML containing CSRF protection tokens without worrying
Ruby
Latest commit f88346e Mar 21, 2013 @cmer fixed gem name in readme
Failed to load latest commit information.
lib
.gitignore first commit Sep 13, 2012
README.md fixed gem name in readme Mar 21, 2013
cacheable-csrf-token-rails.gemspec

README.md

Cacheable CSRF Token for Rails

Cache HTML containing CSRF protection tokens without worrying

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.

Usage

  1. Add cacheable-csrf-token-rails to your Gemfile
  2. Add this line in ApplicationController: include CacheableCSRFTokenRails