Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (12 sloc) 0.582 kb

Rack::Nocache

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 find some use for it in development mode.

  $ gem install rack-nocache

  require "rack-nocache" # or "rack/nocache", whatever floats your boat.
  use Rack::Nocache
Jump to Line
Something went wrong with that request. Please try again.