Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 10, 2013
  1. Merge pull request #63 from mislav/reload-doc

    allow_reload/revalidate is not enabled by default
Commits on Aug 4, 2012
  1. Jerome Touffe-Blin
Commits on May 29, 2012
  1. Andreas Launila

    Gracefully degrade when cache store goes offline

    alau authored
    The metastore reads back the cached body after storing it. If the cache
    store is offline (e.g. memcached goes down) then the value read back
    will be nil. This commit falls back to the original body when that
Commits on May 17, 2012
  1. Mislav Marohnić

    allow_reload/revalidate is not enabled by default

    mislav authored
    These comments were left over after
Commits on Mar 5, 2012
  1. Merge pull request #58 from spastorino/master

    Use rack.logger if it's avaiable
  2. whitespace error

Commits on Mar 3, 2012
  1. Santiago Pastorino
Commits on Feb 17, 2012
  1. Xavier Noria

    adds support for r-maxage

    fxn authored
    r-maxage is a new directive that takes precendence over s-maxage and
    While s-maxage is honored by any shared cache, r-maxage is only taken
    into account by reverse proxy caches, and thus ignored by proxy and
    private caches. Setting r-maxage allows applications to ensure the
    response is only cached by their reverse cache, and thus are able in
    particular to purge the cache knowing that it will not remain stale in
    intermediate proxy servers.
Commits on Feb 15, 2012
  1. Merge pull request #46 from cfis/fix_post_302

    Don't respond with 302 for post/put/head.
Commits on Feb 10, 2012
  1. Ryan McGeary
  2. Ryan McGeary
  3. Ryan McGeary
  4. Ryan McGeary

    Removed all ignore_headers before writing to the cache

    rmm5t authored
    By default, this will strip the Set-Cookie response header before storing a
    cacheable response.
  5. Ryan McGeary

    Added ignore_headers configuration option

    rmm5t authored
    Defaults to ['Set-Cookie'] thereby stripping cookies from cacheable responses
Commits on Jan 10, 2012
  1. Don't respond with 302 for post/put/head. Fixes #44.

    Charlie Savage authored
Commits on Nov 28, 2011
  1. Arun Agrawal

    warning removed while running with 1.9.3

    arunagw authored
    I removed this because this gem is used in rails 
    and when we run rails test then the warnings are coming.
    All test passing after these changes.
Commits on Sep 18, 2011
  1. Merge aughr's entity store native ttl support

    See #33 for some caveats with this approach.
  2. Merge pull request #35 from atzkey/master

    Making memcached metastore backend be aware of namespace
  3. allow IMS/INM requests through to backend on miss, fixes #24

    Prior to this change, rack-cache would always strip any
    If-None-Match and/or If-Modified-Since headers from the request
    before passing along to the backend in an attempt to retrieve a
    response to put in the cache (304 responses are not currently
    cacheable). This approach falls down when the response includes a
    'Cache-Control: private' header (Rails default) because the response
    cannot be cached but will also never allow for client initiated
    The downside to this change is that the cache will fill in more
    slowly when clients make conditional requests for public resources;
    it won't fill in until a non-conditional request is received. The
    upside is that validation works for non-cacheable private responses.
Commits on Sep 9, 2011
  1. Travis D. Warlick, Jr.
Commits on Jul 26, 2011
  1. Denis Bakunovitch
Commits on Jul 6, 2011
  1. Andrew Bloomgarden
Commits on Jun 24, 2011
  1. Kyle Drake
Commits on May 16, 2011
  1. heap metastore marshals data in / out of backing hash

    This is for consistency with the other stores, which all rely on the
    object being marshal-able. It should also address a severe issue
    with the heap store caused by the request env hash being modified in
    place. See the following for more details:
Commits on Apr 13, 2011
Commits on Apr 6, 2011
  1. ignore all unmarshalable objects when persisting request env

    This should close #27. Before we assumed that any env element with
    an all caps + underscore key was marshallable. Now we also check that
    the value is actually a string.
  2. close body from downstream on not modified and head responses

    This should hopefully fix #23 -- Rack::Lock and other middleware
    rely on the body being closed to signal the end of the request
  3. force BINARY encoding when reading from dalli entity store

    Need to pull together a strategy for handling encodings. The binary
    file tests are failing for dalli without this change because
    cache.get appears is returning a utf-8 string when that's the
    external encoding. That actually seems like correct behavior but
    the disk store is setup for binary only so I'm inclined to roll with
    it as the default behavior for now.
  4. move from test-spec to bacon

    I hate this shit so bad. Apparently, I was still under the
    impression that I was clever when these tests were written.
    All of this needs moved to simple test/unit + assert style but I
    don't have time right now so bacon is going to have to do. This
    should at least let us run the testsuite under Ruby 1.9.2 which is
    currently blocking all kinds of progress.
Commits on Feb 7, 2011
  1. Josep Jaume Rey
Commits on Dec 24, 2010
Something went wrong with that request. Please try again.