Added req.fresh and req.stale
Before adoption: this commit came in with the history the project adopted, so no landing records it.
lame usage example: app.get('/user/:id', function(req, res){ var id = req.params.id; res.set('ETag', 'user-' + id); if (req.fresh) return res.send(304); setTimeout(function(){ res.send('large expensive user response ' + id); }, 2000); });
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent de17b28 · Browse files · 1 file+27 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+27 added−0 removed
- other:+27 added−0 removed