Skip to content

defaultCacheKey

defaultCacheKey(method, url, body?): string

Defined in: packages/fetch-kit/src/cache.ts:66

Build a stable cache key from a request signature.

  • Method is uppercased.
  • URL is taken as-is (caller is responsible for any normalization).
  • For body-bearing methods, an opaque body fingerprint is appended so that different payloads don’t collide on the same URL.

Exposed so callers can reuse the default keying strategy when composing their own keyFn.

string

string

unknown

string