Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
rack-cache 0.4 released
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan Tomayko  
View profile  
 More options Mar 16, 2:10 pm
From: Ryan Tomayko <r...@tomayko.com>
Date: Mon, 16 Mar 2009 11:10:31 -0700
Local: Mon, Mar 16 2009 2:10 pm
Subject: [ANN] rack-cache 0.4 released
I wanted to get a release out now that Rails 2.3 is available. There's
been a few feature additions (detailed below) but the majority of
changes were internal. The configuration language was removed entirely
and that allowed us to remove a whole bunch of other dead code. It
also sped things up considerably. Most of the cases addressed by the
configuration language can be accomplished with response headers,
writing middleware situated before or after Rack::Cache, or by setting
configuration options. If you run into issues migrating away from the
configuration language, let me know and we can add hooks where
necessary. I don't think the config language was used very heavily so
I'm hoping this will be fairly painless.

From the CHANGES file:

  * Ruby 1.9.1 / Rack 1.0 compatible.

  * Invalidate cache entries that match the request URL on non-GET/HEAD
    requests. i.e., POST, PUT, DELETE cause matching cache entries to
    be invalidated. The cache entry is validated with the backend using
    a conditional GET the next time it's requested.

  * Implement "Cache-Control: max-age=N" request directive by forcing
    validation when the max-age provided exceeds the age of the cache
    entry. This can be disabled by setting the "allow_revalidate" option to
    false.

  * Properly implement "Cache-Control: no-cache" request directive by
    performing a full reload. RFC 2616 states that when "no-cache" is
    present in the request, the cache MUST NOT serve a stored response even
    after successful validation. This is slightly different from the
    "no-cache" directive in responses, which indicates that the cache must
    first validate its entry with the origin. Previously, we implemented
    "no-cache" on requests by passing so no new cache entry would be stored
    based on the response. Now we treat it as a forced miss and enter the
    response into the cache if it's cacheable. This can be disabled by
    setting the "allow_reload" option to false.

  * Assume identical semantics for the "Pragma: no-cache" request header
    as the "Cache-Control: no-cache" directive described above.

  * Less crazy logging. When the verbose option is set, a single log entry
    is written with a comma separated list of trace events. For example, if
    the cache was stale but validated, the following log entry would be
    written: "cache: stale, valid, store". When the verbose option is false,
    no logging occurs.

  * Added "X-Rack-Cache" response header with the same comma separated trace
    value as described above. This gives some visibility into how the cache
    processed the request.

  * Add support for canonicalized cache keys, as well as custom cache key
    generators, which are specified in the options as :cache_key as either
    any object that has a call() or as a block. Cache key generators get
    passed a request object and return a cache key string.

Documentation and other Rack::Cache related stuff can be found at:

    http://tomayko.com/src/rack-cache/
    http://github.com/rtomayko/rack-cache/

Special thanks to Daniel Mendler, Pat Nakajima, and Dan Kubb for
contributing to this release.

Thanks,
Ryan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google