def cache.max_age

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

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

139# true when max-age is present, so it overrides Expires (RFC 9111 §4.2.1)
140def cache.max_age(c: Cc) -> Bool:
141  match c:
142    case Cc{no_store, no_cache, public, private, max_age, expires}:
143      Bool.not(String.eq(max_age, ""))

Uses (4)

Used by (0)

No other definition uses this definition.