Rack::Nocache

Added by cwninja at May 17, 2010 14:59 Star_smallStar_smallStar_smallStar_smallStar_small
GitHub stats:
Magnifier watcher(s)
Arrow_branch fork(s)
Wrench

About

Rack::Nocache ensures all requests are uncached.

Details

It deletes your ETags, it ignores your If-* headers, to tramples all over your caching headers with:

  {
    "Cache-Control" => "no-cache, no-store, max-age=0, must-revalidate",
    "Pragma" => "no-cache",
    "Expires" => "Fri, 29 Aug 1997 02:14:00 EST"
  }

It's an abusive, grumpy, bandwidth wasting, low down dirty dog of a middleware.

But I'm sure you'll fine some use for it in development mode.

Usage

  $ gem install rack-nocache

  require "rack-nocache" # or "rack/nocache", whatever floats your boat.
  use Rack::Nocache
blog comments powered by Disqus