koa-etag

ETag support for koa

npm install koa-etag
17 downloads in the last day
84 downloads in the last week
472 downloads in the last month

koa-etag

ETag support for Koa responses.

Installation

$ npm install koa-etag

Example

var etag = require('koa-etag');
var koa = require('koa');
var app = koa();

app.use(etag());

app.use(function(next){
  return function *(){
    yield next;
    this.body = 'Hello World';
  }
})

app.listen(3000);

console.log('listening on port 3000');

License

MIT

npm loves you