Request.functions.getCache
Function: getCache()
Section titled “Function: getCache()”getCache(
self):RequestCache|undefined
Defined in: packages/fx-fetch/src/Request/getCache.ts:18
Gets the cache mode of the request.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”RequestCache | undefined
Example
Section titled “Example”import { Request } from 'fx-fetch';
const request = Request.make({ url: 'https://api.example.com', cache: 'no-cache' });const cache = Request.getCache(request);console.log(cache); // 'no-cache'0.1.0