def cache.fresh.cache

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

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

153# no-cache must revalidate
154def cache.fresh.cache(age: Nat, max_age: String, no_cache: Bool) -> Bool:
155  match no_cache:
156    case True{}:
157      False{}
158    case False{}:
159      cache.fresh.go(age, Http.digits.read(max_age))

Uses (5)

Used by (1)