is-fresh

1.0.0 • Public • Published

is-fresh

js-standard-style Build Status Coverage Status

Check whether cache can be used in this HTTP request.

Install

npm install is-fresh

API

'use strict'
const isFresh = require('is-fresh')

isFresh(req, res)

  • req: an instance of http.incomingMessage
  • res: an instance of http.ServerResponse

Return true when cache can be used in this HTTP request, otherwise it will return false.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i is-fresh

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • qqqppp9998