# Cache Inspector

Record and search the history of a deployment's cache — every generation, regeneration, invalidation and tag.

The Cache Inspector records what happens to a deployment's cache: every version of a page or of
cached data (a **generation**), every regeneration, every invalidation and every tag. Use it to
find out why a page shows what it shows, and when it will change.

## Turn it on [#turn-it-on]

1. Open **Cache Inspector** in the project's sidebar.
2. Under **Recording**, tick **Enable Cache Inspector** and choose **Save changes**.
3. Deploy again, for example with **Deploy latest** on the **Deployments** page.

<Screenshot light={{"src":"/_next/static/immutable/media/cache-inspector-settings-light.2xepsxmjislyb.webp","width":1572,"height":1632,"blurWidth":8,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRmgAAABXRUJQVlA4TFwAAAAvB8ABAM1VICICHghACgMAAID7q6QBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAGYw0t/fAACAiMgXK8wS8qQQHLNTR2gsB/7vbKszsLNUcPP0UGpdLejnBg=="}} dark={{"src":"/_next/static/immutable/media/cache-inspector-settings-dark.2km0vuxkr45fc.webp","width":1572,"height":1632,"blurWidth":8,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRmgAAABXRUJQVlA4TFwAAAAvB8ABAM1VICICHgiwDQMAAIA03e6AAQAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA++/o2AwAAIiIHZimN8OZE5V6RbMQvU+HcXRcjC92NBqW+temcb+QZDw=="}} alt="The Cache Inspector page of my-app: the published deployment's Entries, Tags, History and Index, and Recording, with Enable Cache Inspector ticked." />

Only deployments made after it is turned on are recorded, which is why step 3 is needed for the
deployment being served. Until then, the **Cache Inspector** page says that the published
deployment recorded nothing, instead of leading to its cache. Serving is the same with the Cache
Inspector on or off.

Cache Inspector is included in [Pro](/docs/account/billing), with no separate monthly fee.
Owners and admins can enable recording per project. A team on the free plan must subscribe to Pro
first. If Pro ends, recording is turned off for the team.

While a deployment records, its writes to the cache are counted as **Inspectable ISR writes** in
place of ISR writes, at the rates on the [pricing page](/pricing); see
[Usage](/docs/account/usage).

To turn it on through the [API](/docs/api/overview):

```bash title="terminal"
curl -X POST https://api.arkor.dev/v1/projects/$PROJECT_ID/cache-inspector \
  -H "authorization: Bearer $ARKOR_TOKEN" \
  -H "content-type: application/json" \
  -d '{ "enabled": true }'
```

Enabling recording requires an active Pro plan. Turning it off does not require Pro.

## Open a deployment's cache [#open-a-deployments-cache]

While the project records, the **Cache Inspector** page leads to the cache of the published
deployment: choose **Entries**, **Tags**, **History** or **Index**. For another deployment, open it
from the **Deployments** page and choose the **Cache** tab. Its pages are:

- **Entries**: recorded cache entries, with search and filters.
- **Tags**: every tag, and whether it has been invalidated.
- **History**: everything that happened to the cache, newest first.
- **Index**: whether what the pages show is up to date.

## Find an entry [#find-an-entry]

**Entries** opens directly on a paged list of the deployment's recorded runtime cache entries,
with an entry's details beside it. Pages, Route Handlers and data cached with `fetch` or `use cache`
share this list. Entries whose route is absent from the build are also included.

To search, use **Pathname or route**: an exact pathname such as `/blog`, a pathname prefix,
or a route such as `/blog/[slug]`. Filter by type: **Page (App Router)**,
**Page (Pages Router)**, **Route handler**, **Data (fetch)** or **Data (use cache)**.

Select an entry to see its lifetime, whether it is fresh or stale now, and its tags. Choose
**Open entry** for everything recorded about it. **Next page** continues through the list;
**Clear filters** returns to the unfiltered first page and clears the selection.

An empty unfiltered list means the index has no recorded entries yet. A search with no matches
has its own message; clear the filters to browse the recorded entries again.

Choose **Build output** for the deployment's route tree, rendering modes and prerendered shells.
From that tree, **View cache entries** opens this list filtered to a route.

The list is a snapshot of the Inspector's search index. Its footer gives the revision, when it
was indexed and when it was evaluated; recent changes may not be reflected yet. These are recorded
entries, not a live inventory of every Cloudflare data center's cache. The
[Cloudflare Cache API](https://developers.cloudflare.com/workers/runtime-apis/cache/) stores cache
contents locally to the data center handling a request.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-entries-light.2fotwk2aogeso.webp","width":1572,"height":2024,"blurWidth":6,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRlwAAABXRUJQVlA4TE8AAAAvBcABAM1VICICHgjACQQAAIDbWo8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQADaX7sUAAAiIidGh/zzgkxMKno0l7249e86zMVdAA=="}} dark={{"src":"/_next/static/immutable/media/inspector-entries-dark.3zzd8fe4cdgyp.webp","width":1572,"height":2024,"blurWidth":6,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRlwAAABXRUJQVlA4TE8AAAAvBcABAM1VICICHgiwDQMAAICkUQAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMZsb1MOAICIyMV94TpFTEfKz9+raaONHxU0lBYDAA=="}} alt="Cache entries with pathname and type filters, the paginated list of recorded entries, and a panel for the selected entry." />

## Read an entry [#read-an-entry]

An entry's page shows:

- **State**: which generation is current, and whether a regeneration is under way.
- **Generations**: every version, newest first, with where it came from (the build or a
  regeneration) and how long it lives.
- **Regeneration attempts**: each attempt to regenerate the entry, and how it ended.
- **Invalidations**: each `revalidateTag`, `updateTag` or `revalidatePath` that reached it.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-entry-light.1cghxpanffsft.webp","width":1812,"height":2013,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRr4AAABXRUJQVlA4TLIAAAAvBsABAM1VICICHgiwDQMAAIAkq/sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA741qYFAAA8EAkAAAAAgPNvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAHIgEAAAAAcP4NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI78SDYPpOj4lwAYslhVjGlgiCmAIAKIQIC+gDZgiBgwyeEnKUwD"}} dark={{"src":"/_next/static/immutable/media/inspector-entry-dark.3kde04xwwl0h9.webp","width":1812,"height":2013,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRl4AAABXRUJQVlA4TFEAAAAvBsABAM1VICICHggwEQQAAICt/gAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDFtxoAABARefMVgl0/d9QMGmZAY7WwH0F4ZDjPJg0A"}} alt="The /blog cache entry: its key, its state, and its four generations, from the build's to the latest regeneration, with Compare links." />

## Read a generation [#read-a-generation]

Choose a generation to see its lifetime (**Stale after**, **Expires after**), its **Validity** now
(fresh, stale or expired, and why), its tags and its outputs. Owners and admins can also open the
stored page, as a preview or as HTML, and download it.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-generation-light.2l50o13ho_vrm.webp","width":1572,"height":1713,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRrwAAABXRUJQVlA4TLAAAAAvBsABAM1VICICHgiwDQMAAIAkf8sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwN+12AADwQCQAAAAAAM6/AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAeiAQAAAAAwPk3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADjywSQLUjT8IAEjRhUQUxhw8/EiLkY0IiDgEPCbxhRgGyII2A=="}} dark={{"src":"/_next/static/immutable/media/inspector-generation-dark.2n65i-he_c_3m.webp","width":1572,"height":1713,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRlwAAABXRUJQVlA4TFAAAAAvBsABAM1VICICHgggEgMAAIB0BsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALP7VRkAAERE3nwfM9ggVo45xM6lL6LXqIWfHZSWUQ=="}} alt="Generation 4 of the /blog entry: produced by a regeneration, stale after 60 seconds and expiring after 3,600, and stale now." />

## Compare two generations [#compare-two-generations]

In an entry's **Generations**, choose **Compare** to see what changed between a generation and the
one before it, line by line.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-compare-light.2nsgf2bjwf0-8.webp","width":1572,"height":1764,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRsgAAABXRUJQVlA4TLsAAAAvBsABAM1VICICHghADgIAAIBb78cAqhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAt1bf+dwEAAB6IBAAAAADA+TcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2AORAAAAAAA4/wYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAR+4EmULC6QAlAzggBA4IOgmClwoP+OA0DCuDDUBBX6Fg3Fyc/B8jGysLMxMFAA=="}} dark={{"src":"/_next/static/immutable/media/inspector-compare-dark.01ybk9kkw_eip.webp","width":1572,"height":1764,"blurWidth":7,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRsgAAABXRUJQVlA4TLsAAAAvBsABAM1VICICHghACgMAAIDvq72thwEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMbmAbI+dwAAAA9EAgAAAADg/BsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7IFIAAAAAACcfwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAI+8v9dd8oBCVrBcINkpFUAqAQscZODQqjQMa7ABhkyyYGCcXDgeN4OGFH8EEAA=="}} alt="Compare generations of /blog/hello-arkor: a line diff with a paragraph added and the revision line changed." />

## Tags and history [#tags-and-history]

**Tags** lists every tag the cache holds, with how many generations and entries carry it and when
it was last invalidated. Tags you set with `cacheTag` or `fetch` are **explicit**; tags Next.js adds
for each route are **implicit**. Choose a tag to see the generations made with it and each
invalidation that named it.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-tags-light.18-l4zh51nzqu.webp","width":1572,"height":1476,"blurWidth":8,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRmYAAABXRUJQVlA4TFkAAAAvB8ABAM1VICICHggwCgQAAIBt94kAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/479oCAAAiIt+jVWgHDy411+TpuPefbYSx/O0DgsEoXkMdWeBIAQA="}} dark={{"src":"/_next/static/immutable/media/inspector-tags-dark.440onl51v8yhm.webp","width":1572,"height":1476,"blurWidth":8,"blurHeight":8,"blurDataURL":"data:image/webp;base64,UklGRmQAAABXRUJQVlA4TFgAAAAvB8ABAM1VICICHggwEgIAAIDt9g8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMCrutsEAAAiIi/1aYhxG/E850apqLVXGIxpbhX982sHxKiGA78Z"}} alt="The Tags page filtered to explicit tags: posts, products and the tags of single posts and products, with their generations, entries and invalidations." />

**History** lists the cache's events, its invalidations and its regeneration attempts, newest first.
For an invalidation it shows whether it expired pages at once (**immediate**) or let them be served
until regenerated (**stale-while-revalidate**), and how far it has reached.

<Screenshot light={{"src":"/_next/static/immutable/media/inspector-history-light.1f-dlh5u-mn7m.webp","width":1680,"height":1161,"blurWidth":8,"blurHeight":6,"blurDataURL":"data:image/webp;base64,UklGRloAAABXRUJQVlA4TE0AAAAvB0ABAM1VICICHgiwCQAAAIBtzwEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhC97wQAgIjIvegUnAyeehamFXLdBkHja1oUBgA="}} dark={{"src":"/_next/static/immutable/media/inspector-history-dark.3krajss1o98y1.webp","width":1680,"height":1161,"blurWidth":8,"blurHeight":6,"blurDataURL":"data:image/webp;base64,UklGRloAAABXRUJQVlA4TE4AAAAvB0ABAM1VICICHgg6FgIAAICtIgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJzf9g4AAIiI/P4yEZPT9zI1cmjux9qirXBD0QI="}} alt="The invalidations of a my-app deployment: immediate ones of post:hello-arkor, and stale-while-revalidate ones of products and posts, with the entries each reached." />

## Who can see what [#who-can-see-what]

Everyone in the team can open the **Cache Inspector** page, and see entries, generations, tags and
history. Only owners and admins can turn recording on or off, open stored pages and headers,
download them, and compare generations.

## What is kept [#what-is-kept]

While a deployment records, a generation's stored page is kept for 7 days after a newer one replaces
it, and the history for 30 days.

## Turn it off [#turn-it-off]

Untick **Enable Cache Inspector** and choose **Save changes**. Every deployment of the project stops
recording, and one that has stopped does not record again, even if the Cache Inspector is turned back
on: the next deployment does. What was recorded before is shown again once it is back on.

## Troubleshooting [#troubleshooting]

| Message                                                   | What to do                                                                                                                        |
| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| **The Cache Inspector is off for this project**           | Turn it on, then deploy again.                                                                                                    |
| **This deployment recorded nothing of its runtime cache** | The deployment was made while the Cache Inspector was off. Deploy again to record.                                                |
| **The inspector did not answer**                          | Try again shortly. Your site is not affected.                                                                                     |
| Index status **delayed** or **stalled**                   | The pages are behind the cache by more than a minute (delayed) or a quarter of an hour (stalled). What is served is not affected. |

---

Text on this page: Creative Commons Attribution 4.0 International (https://creativecommons.org/licenses/by/4.0/) by Arkor, 2026.

Code samples on this page: MIT License (https://opensource.org/license/mit) by Arkor, 2026.

Scope and exceptions: https://www.arkor.dev/license
