{"library":"koa-cache-control","type":"library","category":null,"description":"The `koa-cache-control` package provides Koa middleware for declarative management of HTTP `Cache-Control` headers. Currently stable at version 2.0.0, it offers a simple API to configure caching behaviors, including `no-cache`, `max-age`, `public`, `private`, and `no-store`. The package helps consolidate common caching patterns, such as automatically setting `max-age=0` when `no-cache` is enabled. While its release cadence has been relatively slow, with its last major update aligning with Koa 2.x, it specifically targets Koa applications, providing a more integrated approach than manually manipulating headers directly. It supports both Koa 1.x (generator-based) and Koa 2.x (async/await based) applications.","language":"javascript","status":"maintenance","version":"2.0.0","tags":["javascript","Koa","cache","cache-control","no-cache"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-cache-control","imports":["import cacheControl from 'koa-cache-control';","const cacheControl = require('koa-cache-control');","ctx.cacheControl = { maxAge: 60 };"]},{"cmd":"yarn add koa-cache-control","imports":[]},{"cmd":"pnpm add koa-cache-control","imports":[]}],"homepage":null,"github":"https://github.com/DaMouse404/koa-cache-control","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-cache-control","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/koa-cache-control/compatibility"}}