libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
Cache Control

Control how requests interact with HTTP cache. More...

Enumerations

enum  fetch_cache_t {
  FETCH_CACHE_DEFAULT , FETCH_CACHE_NO_STORE , FETCH_CACHE_RELOAD , FETCH_CACHE_NO_CACHE ,
  FETCH_CACHE_FORCE_CACHE , FETCH_CACHE_ONLY_IF_CACHED
}
 Cache control modes. More...
 

Detailed Description

Control how requests interact with HTTP cache.

Enumeration Type Documentation

◆ fetch_cache_t

Cache control modes.

Enumerator
FETCH_CACHE_DEFAULT 

Use default cache behavior

FETCH_CACHE_NO_STORE 

Don't use cache at all

FETCH_CACHE_RELOAD 

Bypass cache, update it

FETCH_CACHE_NO_CACHE 

Use cache but validate first

FETCH_CACHE_FORCE_CACHE 

Use cache, ignore validation

FETCH_CACHE_ONLY_IF_CACHED 

Only use cache, fail if not cached