Skip to main content
Version: v8.0.0

ClientMode

Effective cache mode on the client after resolving ClientModeOption from options.

"client" — Cache is enabled globally by default for cacheable requests.

"server" — Cache is disabled by default unless request.setScope(scopeId) is set, to prevent cross-request data leaks.


Import
import { ClientMode } from "@hyper-fetch/core"

Preview

type ClientMode = client | server;