dancroak / no_cache

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

This URL has Read+Write access

no_cache / README
95d374ec » dancroak 2008-04-28 first commit 1 no_cache
2 ========
3
4 This was extracted from a problem we had while building
5 a RESTful wizard without breaking the back button
6
7 http://giantrobots.thoughtbot.com/2008/4/25/pitfalls-in-restful-wizards
8
9 The no_cache plugin will force the browser to fetch a page
10 every time, including on clicks to the 'back' and 'forward'
11 buttons.
12
13 USAGE
14 =====
15
16 class PurchasesController < ApplicationController
17 no_cache [:new, :edit]
18 end
19
20 class TeamsController < ApplicationController
21 no_cache [:new]
22 end
23
24 # app/views/purchases/new,
25 # app/views/purchases/edit, and
26 # app/views/teams/new
27
28 <%= hidden_iframe %>
29
30 Copyright (c) 2008 Chad Pytel, Dan Croak, and thoughtbot, inc.
31 Released under the MIT license