JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39552632
  • Score
    100M100P100Q279489F
  • License MIT

Update the Vary header of a response

Package Exports

  • vary

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vary

NPM version Build Status Coverage Status

Update the Vary header of a response

Install

$ npm install vary

API

var vary = require('vary')

vary(res, header)

Adds the given header to the Vary response header of res.

This will append the header if not already listed, otherwise leaves it listed in the current location.

vary(res, 'Origin')
vary(res, 'User-Agent')

Testing

$ npm test

License

MIT