RFC2616 compliant http cache implementation
$ npm install --save oniyi-cache
var oniyiCache = require('oniyi-cache');
oniyiCache({
storePrivate: false,
storeNoStore: false,
ignoreNoLastMod: false,
requestValidators: [],
responseValidators: [],
hostConfig: {
'www.npmjs.org': {
storePrivate: true,
storeNoStore: true
}
}
});
creates a hash string from the provided request object
The basic concept here has been borrowed from Chris Corbyn's node-http-cache.
0.0.5 --> added "authorization" to the exclusion list of headers for calculating the request hash
MIT © Benjamin Kroeger