cache-header
Get and set the response cache header
Install
npm install cache-header --save
Usage
var express = ;var cacheHeader = ; var app = ; app; app;
cacheHeader(responseObject, headerValue)
responseObject
- the response object passed through by NodeheaderValue
- value to set the header to. Can be the following types:false
- sets value tono-cache
number
- a number or a parseable string. Sets header topublic, max-age={number}
string
- sets the header to whatever the string is
Run Tests
npm install
npm test