Skip to content

Gateway level cache

Compare
Choose a tag to compare
@jkyberneees jkyberneees released this 29 May 08:37
· 288 commits to master since this release

Supporting gateway level cache:

// cache middleware
const cache = require('http-cache-middleware')()
// enable http cache middleware
const gateway = require('fast-gateway')
const server = gateway({
  middlewares: [cache],
  routes: [...]
})