# A cache entry is too large

What "the cache entry unpacks to more than the cache's maxSize" means and how to fix it.

```text
warning: @acme/web#build: the cache entry 3f9c0a1e… unpacks to more than the cache's maxSize
hint: Axle stopped unpacking it and ran the task. If the task's outputs really are that large, raise maxSize under [cache] in axle.toml; otherwise check who can write to the remote cache.
```

## Why it happens

Entries are compressed, and Axle counts the bytes as it unpacks one. An entry that grows past the local cache's `maxSize` (10 GB unless [`maxSize` or `AXLE_CACHE_MAX_SIZE`](https://axlers.dev/docs/reference/configuration.md#cache-settings) says otherwise) is stopped there: Axle deletes the file it was writing, keeps nothing of the entry and runs the task, as for any other miss.

A real result rarely comes near the whole cache's size. Such an entry is more likely a small file built to unpack to a huge one, put in the [remote cache](https://axlers.dev/docs/reference/remote-cache.md) to fill the disk or the memory of every machine that reads it.

## How to fix it

- If the task's outputs really are that large, raise `maxSize` under `[cache]` in `axle.toml`, or set `AXLE_CACHE_MAX_SIZE`.
- Otherwise, find out who can write to the remote cache, and keep builds you don't trust to reading, as [the remote cache page](https://axlers.dev/docs/reference/remote-cache.md#builds-you-dont-trust) describes. With `signature = true`, only someone with the signing key can add entries at all.
