How to cache expressjs response
connect-cache should do the trick. Add this to your app as a middleware
var connect_cache = require('connect-cache');app.use(connect_cache({rules: [{regex: /.*/, ttl: 60000}]}));
connect-cache should do the trick. Add this to your app as a middleware
var connect_cache = require('connect-cache');app.use(connect_cache({rules: [{regex: /.*/, ttl: 60000}]}));