cache-headers

JSON →
library 1.1.1 ·javascript maintenance
verified Jun 7, 2026

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.