{"library":"cache-headers","type":"library","category":null,"description":"Generate browser and CDN cache header values as Express middleware. Version 1.1.1 (latest, stable). Low-activity package (no recent updates). Supports route-level and app-level configuration with glob patterns. Key differentiator: provides sensible defaults for Cache-Control, Surrogate-Control, and Last-Modified headers with options like stale-while-revalidate and stale-if-error for advanced caching strategies. Requires core-js peer dependency. Not actively maintained.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript","cache control","last modified","expires","headers","cache","cdn","response headers"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cache-headers","imports":["const cache = require('cache-headers');","app.use(cache.setupInitialCacheHeaders(pathsConfig));","router.get('/path', cache.overrideCacheHeaders({ maxAge: 2000 }), handler);"]},{"cmd":"yarn add cache-headers","imports":[]},{"cmd":"pnpm add cache-headers","imports":[]}],"homepage":"https://github.com/1stdibs/cache-headers#readme","github":"https://github.com/1stdibs/cache-headers","docs":null,"changelog":null,"pypi":null,"npm":"cache-headers","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}