Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Cache HTML containing CSRF protection tokens without worrying
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.