rtomayko/rack-cache — pull request #51 by paulsponagl (2012-02-01 13:06:41+00:00)
Title: added allow_reload_check option to "secure" cache refresh

If you want to restrict the ability of a cache refresh you are able
to supply a lambda to this option. It will recieve the current
Rack::[Cache::]Request as an argument. Unless it returns false the reload
will be allowed.

Example: check for existance of an "admin" cookie
:allow_reload_check => lambda { |request| !request.cookies['admin'].blank? }