cache-immutable

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

A minimalist Node.js library that sets HTTP response headers to cache content for a long time (one year). Version 1.0.2 is the latest stable release, with no active development since 2016. The library sets Cache-Control: max-age=31536000 and omits Expires and Pragma headers, relying on HTTP/1.1 best practices where max-age overrides Expires. It is intended for immutable static assets. Unlike more complex caching libraries, it provides a single function with no configuration, making it ideal for simple use cases.