Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails plugin. Force major browsers (IE, Firefox, Safari) to reload a page, even when triggered by 'back' button.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb
README
no_cache
========

This was extracted from a problem we had while building
a RESTful wizard without breaking the back button

http://giantrobots.thoughtbot.com/2008/4/25/pitfalls-in-restful-wizards

The no_cache plugin will force the browser to fetch a page
every time, including on clicks to the 'back' and 'forward'
buttons.

USAGE
=====

class PurchasesController < ApplicationController
  no_cache [:new, :edit]
end

class TeamsController < ApplicationController
  no_cache [:new]
end

# app/views/purchases/new, 
# app/views/purchases/edit, and 
# app/views/teams/new

<%= hidden_iframe %>

Copyright (c) 2008 Chad Pytel, Dan Croak, and thoughtbot, inc.
Released under the MIT license
Something went wrong with that request. Please try again.