---
title: "Prefetch cache chunks"
method: POST
path: "/cache/fetch"
---

# Prefetch cache chunks

`POST /cache/fetch`

Ensures specified file chunks are cached locally for a cache remote.

## Query parameters

- `chunks` string
- `params` object
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- CacheFetchRequest
  - `chunks` string — Comma-separated chunk specifier list (e.g. `0:10,25:30`) describing file pieces to prefetch.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Request succeeded with no response body.

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

## Changes

> 21 revisions in range; 17 could not be searched.

- **2026-06-05** `2849bf2803ce` — 2 info
  - added the new optional `header` request parameter `Prefer`
  - added the success response with the status `202`
- **2025-12-06** `30e239e76ba1` — 6 breaking, 1 warning
  - removed the request body
  - the response property `input` became nullable for the status `4XX`
  - the response property `input` became nullable for the status `5XX`
  - the response property `input/additionalProperties/` became nullable for the status `4XX`
  - …3 more

[Change history](https://skmtc.dev/rclone/apis/rclone-rc-api/changes/cache/fetch/post.md)

---

[API](https://skmtc.dev/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.dev/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/revisions/adc0c129da4f/schema)
