# @types/koa-cache-control

> TypeScript definitions for koa-cache-control

Latest version **2.0.6** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/koa-cache-control
pnpm add @types/koa-cache-control
yarn add @types/koa-cache-control
bun add @types/koa-cache-control
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2025-10-24 |
| First published | 2017-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51375 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/koa-cache-control
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cache-control
- npm.io page: https://npm.io/package/@types/koa-cache-control

## Dependencies (1)

- [@types/koa](https://npm.io/package/@types/koa.md) *

## Recent versions

- 2.0.6 (latest) — 2025-10-24
- 2.0.5 (ts5.1) — 2023-11-07
- 2.0.3 (ts3.6) — 2021-08-10
- 2.0.1 (ts2.9) — 2017-11-09
- 2.0.0 (ts2.2) — 2017-03-20
- 2.0.4 — 2023-10-18
- 2.0.2 — 2021-07-08

## README

# Installation
> `npm install --save @types/koa-cache-control`

# Summary
This package contains type definitions for koa-cache-control (https://github.com/DaMouse404/koa-cache-control).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cache-control.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-cache-control/index.d.ts)
````ts
import Koa = require("koa");

declare function cacheControl(options?: {
    private?: boolean;
    public?: boolean;
    noStore?: boolean;
    noCache?: boolean;
    noTransform?: boolean;
    mustRevalidate?: boolean;
    staleIfError?: number;
    staleWhileRevalidate?: number;
    maxAge?: number;
    sMaxAge?: number;
    proxyRevalidate?: boolean;
}): Koa.Middleware;

declare namespace cacheControl {}

export = cacheControl;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)

# Credits
These definitions were written by [Peter Safranek](https://github.com/pe8ter).

---
_Source: https://npm.io/package/@types/koa-cache-control · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
