def cache.fresh

emerging-ezhttp@0.21.0.0 · src/cache.bend:170

import emerging-ezhttp@0.21.0.0/src/cache.bend as Cache
import Base

170# age seconds against the directives. max-age=0 is stale (RFC 9111 §4.2.1).
171def cache.fresh(c: Cc, age: Nat) -> Bool:
172  match c:
173    case Cc{no_store, no_cache, public, private, max_age, expires}:
174      cache.fresh.store(age, no_cache, max_age, no_store)

Uses (4)

Used by (1)