{"library":"express-cache-headers","type":"library","category":null,"description":"An Express middleware for setting response cache headers. Version 0.1.4 is the latest stable release. It allows you to control cache behavior per-route by providing options such as TTL (time-to-live), nocache, private, and mustrevalidate. Unlike more complex caching solutions like apicache or express-cache-ctrl, this package focuses solely on setting cache HTTP headers (Cache-Control, Pragma, Expires) with minimal configuration. It is lightweight and does not require a store, making it ideal for simple caching scenarios where only headers are needed.","language":"javascript","status":"active","version":"0.1.4","tags":["javascript","cache","header","middleware"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-cache-headers","imports":["const cache = require('express-cache-headers');","app.use(cache(10));","app.get('/route', cache({ttl: 300, private: true}), handler);"]},{"cmd":"yarn add express-cache-headers","imports":[]},{"cmd":"pnpm add express-cache-headers","imports":[]}],"homepage":null,"github":"https://github.com/nitsujlangston/express-cache-headers","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-cache-headers","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-cache-headers/compatibility"}}