# workbox-expiration

> A service worker helper library that expires cached responses based on age or maximum number of entries.

Latest version **7.4.1** (published 2026-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install workbox-expiration
pnpm add workbox-expiration
yarn add workbox-expiration
bun add workbox-expiration
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.4.1 |
| Published | 2026-05-04 |
| First published | 2019-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 242.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13009 |
| Author | Google's Web DevRel Team and Google's Aurora Team |
| Maintainers | gauntface, jeffposnick, addyosmani, philipwalton, tropicadri, westonruter, tomayac, khempenius, swissspidy, snugug |
| Keywords | workbox, workboxjs, service worker, sw, workbox-plugin |

## Links

- npm: https://www.npmjs.com/package/workbox-expiration
- Repository: https://github.com/googlechrome/workbox
- Homepage: https://github.com/GoogleChrome/workbox
- Issues: https://github.com/googlechrome/workbox/issues
- npm.io page: https://npm.io/package/workbox-expiration

## Dependencies (2)

- [idb](https://npm.io/package/idb.md) ^7.0.1
- [workbox-core](https://npm.io/package/workbox-core.md) 7.4.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 7.4.1 (latest) — 2026-05-04
- 6.4.0 (next) — 2021-11-03
- 7.4.0 — 2025-11-19
- 7.3.0 — 2024-10-29
- 7.1.0 — 2024-04-23
- 7.0.0 — 2023-05-31
- 6.6.1 — 2023-05-30
- 6.6.0 — 2023-05-26
- 6.5.4 — 2022-07-27
- 6.5.3 — 2022-04-12
- 6.5.2 — 2022-03-24
- 6.5.1 — 2022-03-03
- 6.5.0 — 2022-02-23
- 6.4.2 — 2021-12-02
- 6.4.1 — 2021-11-15
- … 45 more at https://npm.io/package/workbox-expiration/versions

## README

This module's documentation can be found at https://developers.google.com/web/tools/workbox/modules/workbox-expiration

---
_Source: https://npm.io/package/workbox-expiration · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
