koajs / Etag
Licence: mit
ETag support for Koa responses
Stars: ✭ 100
Programming Languages
javascript
184084 projects - #8 most used programming language
koa-etag
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].