HTTP caching proxy: edge case
HTTP caching proxy: edge case: a task in smol-software-harbor (Harbor dataset). Our CDN keeps serving pages whose origin sends Cache-Control: max-age=600, s-maxage=0 (meant as "browsers may cache, shared caches must revalidate"). is fresh in httpcache/fresh.py must let s-maxage take precedence…
The task
Our CDN keeps serving pages whose origin sends `Cache-Control: max-age=600, s-maxage=0` (meant as "browsers may cache, shared caches must revalidate"). `is_fresh` in `httpcache/fresh.py` must let `s-maxage` take precedence over `max-age` even when it is 0, as documented. Fix it and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.