repletes - v1.1.0
    Preparing search index...

    Function fromCacheControl

    • 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.

      Type Parameters

      Parameters

      Returns Freshness<T>