cache-control-midd
Express/Connect middleware to set response header cache options
Install
npm install cache-control-midd --save
Usage
var express = ;var cacheControl = ; var app = ; // Sets `Cache-Control` header to `public, max-age=600` and `Expires` too// 'minute' -> 10 minutes -> 600 seconds app; app;
cacheControl(timeValue)
see cache-header-control for details.
Run Tests
npm install
npm test