method ICacheApi.match
ICacheApi.match(request: Request | string): Promise<Response | undefined>

Looks up a cached response.

Parameters

request: Request | string

The cache key, as a Request or a URL string

Return Type

Promise<Response | undefined>

The cached response, or undefined on a miss

Usage

import { type ICacheApi } from "cloudflare-plugin/src/index.ts";