{"library":"cacheable-middleware","type":"library","category":null,"description":"Middleware for Express/Connect to set HTTP cache headers (Cache-Control, Expires) on responses. Version 1.0.0 (latest) requires Node >=6. Methods: res.cacheFor(milliseconds) or res.cacheFor(amount, unit) using Moment.js duration syntax. Can also set default cache duration for all routes in a middleware stack. Lightweight, no dependencies beyond Node built-ins. Differs from express-cache-headers by offering both per-response and global configuration.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","cache","headers","express","connect","middleware"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cacheable-middleware","imports":["import cacheable from 'cacheable-middleware';","const cacheable = require('cacheable-middleware');","import cacheable from 'cacheable-middleware';"]},{"cmd":"yarn add cacheable-middleware","imports":[]},{"cmd":"pnpm add cacheable-middleware","imports":[]}],"homepage":null,"github":"https://github.com/steveukx/cacheable-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cacheable-middleware","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/cacheable-middleware/compatibility"}}