package
Koa ETag support middleware
npm install koa-etagGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Etag support for Koa responses using etag.
Please use @koa/etag (v5+) instead. It is the same module, and this package will be deprecated in the next major release.
# npm
$ npm install koa-etag
# yarn
$ yarn add koa-etag
const Koa = require('koa');
const etag = require('koa-etag');
const conditional = require('koa-conditional-get');
const compress = require('koa-compress');
const app = new Koa();
// must be used before `conditional` and `etag`
app.use(compress());
// etag works together with conditional-get
app.use(conditional());
app.use(etag());
app.use(function
niftylettuce
niftylettuce@gmail.com
Estimated unpacked size across 5 packages.
2.6 MB
Includes dependencies.