HTTP Cache ​
HTTPX has no in-memory HTTP cache subsystem. HTTP caching is handled where it is actually implemented:
- Static files:
server.static(mount, dir)serves with ETags and honorsIf-None-Match(304 Not Modified). Seeexamples/staticFiles.zig. - Downloads:
.existing = .verifyExistingskips re-downloads, and.replaceIfChangeduses conditional headers. Seeexamples/downloadExisting.zig. - DNS: client-side cache via
ClientConfig.dnsCache.
Checklist ​
- [x] ETag generation and matching on static routes
- [x] Conditional GET (304 Not Modified)
- [x] Download resume and existing-file policies
