Skip to content

Request.functions.getCache

fx-fetch


fx-fetch / Request / getCache

getCache(self): RequestCache | undefined

Defined in: packages/fx-fetch/src/Request/getCache.ts:18

Gets the cache mode of the request.

Request

RequestCache | undefined

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