Etag
ETag support for Koa responses
Install / Use
/learn @koajs/EtagREADME
@koa/etag
Etag support for Koa responses using etag.
Installation
# npm
$ npm install @koa/etag
# yarn
$ yarn add @koa/etag
Example
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 (ctx) {
ctx.body = 'Hello World';
});
app.listen(3000);
console.log('listening on port 3000');
License
Related Skills
openhue
347.9kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
347.9kElevenLabs text-to-speech with mac-style say UX.
weather
347.9kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.6kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
