express-legacy-expires
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/express-legacy-expires package

1.0.0 • Public • Published

express-legacy-expires

NPM version Build Status Coverage Status dependencies devDependencies

Middleware for ExpressJS that automatically adds Expires headers for legacy browsers based on your Cache-Control headers.

Adding this middleware means you never need to define Expires headers for compatibility, you just set normal modern Cache-Control headers and a corresponding Expires header for older HTTP clients is automatically set.

This middleware doesn't help define Cache-Control, try combining it with express-cache-response-directive for that.

Install

$ npm install express-legacy-expires

Usage

var legacyExpires = require('express-legacy-expires');
app.use(legacyExpires());

License

MIT

Package Sidebar

Install

npm i express-legacy-expires

Weekly Downloads

44

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dantman