0.0.3 • Published 9 years ago

connect-cache-headers v0.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

Overview

Just sets headers to cache, based on the given ''age''.

Install

npm install connect-cache-headers --save

Middleware params

  • age (number)
  • private (boolean)
  • additional directives (array)

Usage

Set max-age and public

app = express()
app.use(require('connect-cache-headers')(1800))

Set max-age and private

app.use(require('connect-cache-headers')(1800, true))
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago