1.0.0 • Published 10 years ago
is-fresh v1.0.0
is-fresh
Check whether cache can be used in this HTTP request.
Install
npm install is-freshAPI
'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.
1.0.0
10 years ago