CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 09:16:45 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100106120707
location: https://web.archive.org/web/20100106120707/https://github.com/rtomayko/rack-cache
server-timing: captures_list;dur=1.139944, exclusion.robots;dur=0.037899, exclusion.robots.policy;dur=0.017723, esindex;dur=0.064237, cdx.remote;dur=59.889236, LoadShardBlock;dur=235.056033, PetaboxLoader3.datanode;dur=53.679178, PetaboxLoader3.resolve;dur=65.267827
x-app-server: wwwb-app221
x-ts: 302
x-tr: 349
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app221; 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: Fri, 08 Aug 2025 09:16:46 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 06 Jan 2010 12:07:07 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "46b5262d55332073921ad5e87021573b"
x-archive-orig-x-runtime: 64ms
x-archive-orig-content-length: 28939
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: Wed, 06 Jan 2010 12:07:07 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="Tue, 01 Dec 2009 04:01:44 GMT", ; rel="memento"; datetime="Wed, 06 Jan 2010 12:07:07 GMT", ; rel="next memento"; datetime="Thu, 04 Feb 2010 20:25:13 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_20100106120225_crawl102-c/51_13_20100106120640_crawl101.arc.gz
server-timing: captures_list;dur=0.793941, exclusion.robots;dur=0.028815, exclusion.robots.policy;dur=0.013756, esindex;dur=0.016525, cdx.remote;dur=54.228324, LoadShardBlock;dur=200.170422, PetaboxLoader3.datanode;dur=142.673351, PetaboxLoader3.resolve;dur=185.420968, load_resource;dur=189.321568
x-app-server: wwwb-app221
x-ts: 200
x-tr: 514
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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
rtomayko / rack-cache
- Source
- Commits
- Network (11)
- Issues (4)
- Graphs
-
Branch:
master
name | age | message | |
---|---|---|---|
![]() |
.autotest | Sun Oct 19 22:24:22 -0700 2008 | add DiskBackedMemory store; other small tweaks ... [Ryan Tomayko] |
![]() |
.gitignore | Sun Oct 19 22:24:34 -0700 2008 | documentation system + documentation [Ryan Tomayko] |
![]() |
CHANGES | Sat Jun 06 00:01:02 -0700 2009 | Advanced memcached config, including server clu... [Ryan Tomayko] |
![]() |
COPYING | Sun Oct 19 22:24:34 -0700 2008 | documentation system + documentation [Ryan Tomayko] |
![]() |
README | Mon Mar 16 10:27:23 -0700 2009 | 0.4 release [Ryan Tomayko] |
![]() |
Rakefile | Fri Sep 25 21:33:36 -0700 2009 | add gemcutter release tasks [Ryan Tomayko] |
![]() |
TODO | Tue Mar 31 06:28:13 -0700 2009 | Update TODO with stuff planned for 0.5 release [Ryan Tomayko] |
![]() |
doc/ | Mon May 25 06:40:46 -0700 2009 | Fix bad config examples in storage docs [Ryan Tomayko] |
![]() |
example/ | Wed Feb 04 03:32:05 -0800 2009 | Example Sinatra app [nakajima] |
![]() |
lib/ | Tue Dec 22 16:50:25 -0800 2009 | Minor tweaks to env merge logic [Ryan Tomayko] |
![]() |
rack-cache.gemspec | Fri Sep 25 21:34:12 -0700 2009 | 0.5.2 maintenance release [Ryan Tomayko] |
![]() |
test/ | Mon Dec 14 09:54:17 -0800 2009 | modify behaviour of validate to support validat... [Daniel Mendler] |
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!