Skip to content

Interface: HttpCacheOptions ​

Defined in: api/rust-fetch.d.ts:232

Limits of the client's response cache (httpCache).

Properties ​

maxBytes? ​

optional maxBytes?: number

Defined in: api/rust-fetch.d.ts:236

Estimated bytes kept in all. Default 50,000,000.


maxEntries? ​

optional maxEntries?: number

Defined in: api/rust-fetch.d.ts:234

Entries kept, least recently used dropped first. Default 100.


maxEntryBytes? ​

optional maxEntryBytes?: number

Defined in: api/rust-fetch.d.ts:238

Larger responses are not stored. Default 1,000,000.

Released under the MIT or Apache-2.0 license.