Freshness read from response headers, for servers worth trusting.
Reads no-store, no-cache, private, max-age, s-maxage,
stale-while-revalidate and stale-if-error. Everything else in RFC 9111 is
out of scope. Returns undefined, declining the write, for no-store, for
private on a shared cache, and for a status the caller did not call
storable.
Freshness read from response headers, for servers worth trusting.
Reads
no-store,no-cache,private,max-age,s-maxage,stale-while-revalidateandstale-if-error. Everything else in RFC 9111 is out of scope. Returnsundefined, declining the write, forno-store, forprivateon a shared cache, and for a status the caller did not call storable.