4.0.0 • Published 4 years ago

koa-etag v4.0.0

Weekly downloads
96,618
License
MIT
Repository
github
Last release
4 years ago

koa-etag

NPM version Build status Test coverage Dependency Status License Downloads

Etag support for Koa responses using etag.

Installation

# npm
$ npm install koa-etag
# yarn
$ yarn add koa-etag

Example

const conditional = require('koa-conditional-get');
const etag = require('koa-etag');
const Koa = require('koa');
const app = new Koa();

// etag works together with conditional-get
app.use(conditional());
app.use(etag());

app.use(function (ctx) {
  ctx.body = 'Hello World';
});

app.listen(3000);

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

License

MIT

4.0.0

4 years ago

2.1.2

7 years ago

2.1.1

8 years ago

3.0.0

8 years ago

2.1.0

9 years ago

2.0.0

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.5

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.1.0

11 years ago

1.0.0

11 years ago