1.0.3 • Published 6 years ago

cachecache v1.0.3

Weekly downloads
35
License
ISC
Repository
github
Last release
6 years ago

cachecache

Connect middleware to preemptively handle requests containing If-None-Match and If-Modified-Since headers.

By default, Express will return 304s for dynamic content, but only after it has been regenerated. This caches response headers (but not bodies) to allow 304s to be sent without potentially-costly content regeneration.

Usage

npm install --save cachecache
var app = require("express")();

app.use(require("cachecache")({
  max: 1000000 // maximum number of entries in the underlying LRU cache;
               // default value
});

// ...
1.0.3

6 years ago

1.0.2

8 years ago

1.0.1

10 years ago

1.0.0

10 years ago