egg-etag
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

egg-etag

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Wrap koa-etag and koa-conditional-get for egg

For better performance, we recommend to use Nginx ETag rather than use this plugin.

Install

$ npm i egg-etag --save

Usage

// {app_root}/config/plugin.js
exports.etag = {
  package: 'egg-etag',
};

Configuration

Support all configurations in etag.

// {app_root}/config/config.default.js
exports.etag = {
  weak: false,
};

Questions & Suggestions

Please open an issue here.

License

MIT

/egg-etag/

    Package Sidebar

    Install

    npm i egg-etag

    Weekly Downloads

    30

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    6.98 kB

    Total Files

    14

    Last publish

    Collaborators

    • atian25
    • fengmk2
    • huacnlee