node-cacher
node-cacher copied to clipboard
Distributed HTTP caching backed by memcached and implemented via middleware
You can see that it can accept any connect compatible middlewares... I am trying to implement it as a global, route-less middleware. https://browsersync.io/docs/options#option-middleware I added it as a middleware, but...
Perhaps offers lower latency and better performance?
Sometimes yo need to avoid cache on certains errors; ``` javascript app.get('/dont-cache-onthefly', cacher.cache('day'), function(req, res) { // some complex stuff // if have an error response dont cache it: req.noCaching...
I'm thinking it would be nice if `Cacher` supported `Cache-Control: max-age`, `Cache-Control: s-maxage`, and `Expires` headers out of the box. I've added support for this in my own application by...