Socket
Socket
Sign inDemoInstall

@medley/etag

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @medley/etag

Medley plugin for automatic ETag generation & conditional GET responses


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
3.95 kB
Created
Weekly downloads
 

Readme

Source

@medley/etag

npm Version Build Status Coverage Status dependencies Status

Medley plugin for automatic ETag generation & conditional GET responses.

Generates an ETag header for string and Buffer response bodies and sends a 304 Not Modified response if the ETag matches the incoming If-None-Match header.

Installation

npm install @medley/etag
# or
yarn add @medley/etag

Usage

const medley = require('@medley/medley');
const app = medley();

app.register(require('@medley/etag'));

app.get('/', (req, res) => {
  res.send('Hello World');
});

app.listen(3000);

Keywords

FAQs

Last updated on 05 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc