You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
nau 4825f68edf servidor funciona, gpio desabilitat 8 years ago
..
.npmignore servidor funciona, gpio desabilitat 8 years ago
Makefile servidor funciona, gpio desabilitat 8 years ago
Readme.md servidor funciona, gpio desabilitat 8 years ago
index.js servidor funciona, gpio desabilitat 8 years ago
package.json servidor funciona, gpio desabilitat 8 years ago

Readme.md

node-fresh

HTTP response freshness testing

fresh(req, res)

Check freshness of req and res headers.

When the cache is "fresh" true is returned, otherwise false is returned to indicate that the cache is now stale.

Example:

var req = { 'if-none-match': 'tobi' };
var res = { 'etag': 'luna' };
fresh(req, res);
// => false

var req = { 'if-none-match': 'tobi' };
var res = { 'etag': 'tobi' };
fresh(req, res);
// => true

Installation

$ npm install fresh