connect-cache-headers

0.0.3 • Public • Published

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))

Package Sidebar

Install

npm i connect-cache-headers

Weekly Downloads

66

Version

0.0.3

License

MIT

Last publish

Collaborators

  • lucastschmidt