# apollo-server-plugin-response-cache

> Apollo Server full query response cache

Latest version **3.8.2** (published 2023-03-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install apollo-server-plugin-response-cache
pnpm add apollo-server-plugin-response-cache
yarn add apollo-server-plugin-response-cache
bun add apollo-server-plugin-response-cache
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.8.2 |
| Published | 2023-03-02 |
| First published | 2019-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.0 |
| Dependencies | 3 |
| Unpacked size | 31 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13958 |
| Author | Apollo |
| Maintainers | apollo-bot |

## Links

- npm: https://www.npmjs.com/package/apollo-server-plugin-response-cache
- Repository: https://github.com/apollographql/apollo-server
- Homepage: https://github.com/apollographql/apollo-server#readme
- Issues: https://github.com/apollographql/apollo-server/issues
- npm.io page: https://npm.io/package/apollo-server-plugin-response-cache

## Dependencies (3)

- [apollo-server-types](https://npm.io/package/apollo-server-types.md) ^3.8.0
- [apollo-server-plugin-base](https://npm.io/package/apollo-server-plugin-base.md) ^3.7.2
- [@apollo/utils.keyvaluecache](https://npm.io/package/@apollo/utils.keyvaluecache.md) ^1.0.1

## Recent versions

- 3.8.2 (latest) — 2023-03-02
- 0.10.0 (v2) — 2022-08-18
- 3.5.0-alpha.1 (alpha) — 2021-12-28
- 3.2.0 (next) — 2021-08-23
- 3.0.0-rc.1 (rc) — 2021-07-02
- 3.0.0-preview.3 (preview) — 2021-06-26
- 0.300.0-html.0 (html) — 2021-05-25
- 0.300.0-lambda.0 (alphalambda) — 2021-05-13
- 0.7.1-unified2.1 (unified) — 2021-04-27
- 0.300.0-alpha.3 (next-v3) — 2020-08-12
- 3.8.1 — 2022-11-03
- 3.8.0 — 2022-11-02
- 3.7.1 — 2022-10-07
- 3.7.0 — 2022-07-11
- 3.6.1 — 2022-06-15
- … 99 more at https://npm.io/package/apollo-server-plugin-response-cache/versions

## README

# Response Cache plugin

This Apollo server plugin implements a full GraphQL query response cache.

- Add the plugin to your ApolloServer's plugins list
- Set `@cacheControl` hints on your schema or call `info.cacheControl.setCacheHint` in your resolvers
- If the entire GraphQL response is covered by cache hints with non-zero maxAge,
  the whole response will be cached.

This cache is a full query cache: cached responses are only used for identical requests.


See [the docs](https://www.apollographql.com/docs/apollo-server/performance/caching/) for details.

---
_Source: https://npm.io/package/apollo-server-plugin-response-cache · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
