Skip to content
Myr

Added res.cache(str)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 61ce6c5 · Browse files · 2 files+35 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

2 files+35 added−0 removed

  • tests:+23 added−0 removed
  • other:+12 added−0 removed

2 files+35 added−0 removed

modified:lib/response.js+12 added
40 unmodified lines
41 return this;42};4344/**45 * Set Cache-Control to the given `str`.46 *47 * @param {String} str48 * @return {ServerResponse}49 * @api public50 */5152res.cache = function(str){53 return this.set('Cache-Control', str);54};5556/**57 * Send a response.58 *59 * Examples:60 *
528 unmodified lines
added:test/res.cache.js+23 added