OptionalcacheRequest cache mode.
Controls how the request interacts with the browser's HTTP cache.
"default": Standard browser caching behavior"no-store": Bypass cache completely, don't store response"reload": Bypass cache, but store response"no-cache": Validate with server before using cache"force-cache": Use cache even if stale"only-if-cached": Only use cache, fail if not cachedOptionalcredentialsCredentials inclusion mode.
Controls whether cookies and HTTP authentication are sent.
"omit": Never send credentials"same-origin": Send credentials only for same-origin requests"include": Always send credentials, even cross-originOptionalintegritySubresource integrity hash for verification.
A cryptographic hash (e.g., "sha256-abc123...") to verify the fetched
resource hasn't been tampered with. The browser will reject responses
that don't match the expected hash.
OptionalkeepaliveWhether to keep the connection alive after page unload.
When true, the request can outlive the page that initiated it. Useful
for analytics or logging requests that should complete even if the user
navigates away.
OptionalmodeCORS (Cross-Origin Resource Sharing) mode.
Controls cross-origin request behavior.
"cors": Standard CORS request (requires server support)"no-cors": Limited cross-origin request (opaque response)"same-origin": Only allow same-origin requests"navigate": For navigation requests (used by browsers)OptionalredirectHTTP redirect handling behavior.
"follow": Automatically follow redirects (default)"error": Throw an error on redirect"manual": Return redirect response for manual handlingOptionalreferrerReferrer URL to send with the request.
Overrides the default referrer. Use empty string to suppress the referrer header entirely.
OptionalreferrerPolicy for how much referrer information to include.
Controls what referrer information is sent with requests. More restrictive policies improve privacy but may break some server-side analytics or security checks.
OptionalsignalAbortSignal for request cancellation.
Connect to an AbortController to enable cancellation of in-flight requests. When the signal is aborted, the fetch promise rejects with an AbortError.
Fetch API request options.
Subset of the standard
RequestInitinterface, excluding properties that are managed internally (body, headers, method). These options control caching, CORS, credentials, and request lifecycle behavior.