CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 19 Aug 2025 12:47:10 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091201040144
location: https://web.archive.org/web/20091201040144/https://github.com/rtomayko/rack-cache
server-timing: captures_list;dur=0.611827, exclusion.robots;dur=0.024715, exclusion.robots.policy;dur=0.014332, esindex;dur=0.010472, cdx.remote;dur=45.954980, LoadShardBlock;dur=542.915056, PetaboxLoader3.datanode;dur=64.016114, PetaboxLoader3.resolve;dur=339.507380
x-app-server: wwwb-app200
x-ts: 302
x-tr: 629
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app200; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 19 Aug 2025 12:47:12 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Tue, 01 Dec 2009 04:01:43 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "ca1d401e3255a9bf61142d236630762b"
x-archive-orig-x-runtime: 138ms
x-archive-orig-content-length: 31511
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 01 Dec 2009 04:01:44 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 18 Dec 2008 14:40:51 GMT", ; rel="prev memento"; datetime="Sat, 10 Oct 2009 04:49:48 GMT", ; rel="memento"; datetime="Tue, 01 Dec 2009 04:01:44 GMT", ; rel="next memento"; datetime="Wed, 06 Jan 2010 12:07:07 GMT", ; rel="last memento"; datetime="Thu, 26 Jun 2025 03:05:21 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_13_20091201020227_crawl102-c/51_13_20091201040025_crawl101.arc.gz
server-timing: captures_list;dur=0.701048, exclusion.robots;dur=0.033052, exclusion.robots.policy;dur=0.019972, esindex;dur=0.014137, cdx.remote;dur=11.170594, LoadShardBlock;dur=282.405711, PetaboxLoader3.datanode;dur=701.422528, PetaboxLoader3.resolve;dur=463.593228, load_resource;dur=922.974817
x-app-server: wwwb-app200
x-ts: 200
x-tr: 1343
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
rtomayko's rack-cache at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Real HTTP Caching for Ruby Web Apps edit |
Homepage: | https://tomayko.com/src/rack-cache/ edit |
Public Clone URL: |
git://github.com/rtomayko/rack-cache.git
Give this clone URL to anyone.
git clone git://github.com/rtomayko/rack-cache.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:rtomayko/rack-cache.git
|
README
Rack::Cache =========== Rack::Cache is suitable as a quick drop-in component to enable HTTP caching for Rack-based applications that produce freshness (Expires, Cache-Control) and/or validation (Last-Modified, ETag) information: * Standards-based (RFC 2616) * Freshness/expiration based caching * Validation (If-Modified-Since / If-None-Match) * Vary support * Cache-Control: public, private, max-age, s-maxage, must-revalidate, and proxy-revalidate. * Portable: 100% Ruby / works with any Rack-enabled framework * Disk, memcached, and heap memory storage backends For more information about Rack::Cache features and usage, see: https://tomayko.com/src/rack-cache/ Rack::Cache is not overly optimized for performance. The main goal of the project is to provide a portable, easy-to-configure, and standards-based caching solution for small to medium sized deployments. More sophisticated / high-performance caching systems (e.g., Varnish, Squid, httpd/mod-cache) may be more appropriate for large deployments with significant throughput requirements. Installation ------------ From Gem: $ sudo gem install rack-cache With a local working copy: $ git clone git://github.com/rtomayko/rack-cache.git $ rake package && sudo rake install Basic Usage ----------- Rack::Cache is implemented as a piece of Rack middleware and can be used with any Rack-based application. If your application includes a rackup (`.ru`) file or uses Rack::Builder to construct the application pipeline, simply require and use as follows: require 'rack/cache' use Rack::Cache, :metastore => 'file:/var/cache/rack/meta', :entitystore => 'file:/var/cache/rack/body', :verbose => true run app Assuming you've designed your backend application to take advantage of HTTP's caching features, no further code or configuration is required for basic caching. Using with Rails ---------------- Add this to your `config/environment.rb`: config.middleware.use Rack::Cache, :verbose => true, :metastore => 'file:/var/cache/rack/meta', :entitystore => 'file:/var/cache/rack/body' You should now see `Rack::Cache` listed in the middleware pipeline: rake middleware See the following for more information: https://snippets.aktagon.com/snippets/302 Links ----- Documentation: https://tomayko.com/src/rack-cache/ Mailing List: https://groups.google.com/group/rack-cache GitHub: https://github.com/rtomayko/rack-cache/ License ------- Copyright (c) 2008 Ryan Tomayko <https://tomayko.com/about> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This feature is coming soon. Sit tight!