v0.8.0
Legacy Header Support, Refactors, and Documentation
This release adds compatibility with the legacy X-Cache-Status header (for easier migration from gregjones/httpcache), along with internal refactors and expanded documentation.
Highlights
-
Legacy Header Support (ebbe290, 03ebc3a)
-
Added the legacy
X-Cache-Statusheader for migration fromgregjones/httpcache. -
Header Value Mapping:
X-Httpcache-Status X-Cache-Status Description HIT 1 Served from cache STALE 1 Served from cache but stale REVALIDATED 1 Revalidated with origin MISS (not set) Served from origin BYPASS (not set) Bypassed cache, served from origin X-Httpcache-Statusis set on every response, whileX-Cache-Statusis omitted for misses and bypasses. -
Example response headers for a stale cache hit:
X-Httpcache-Status: STALE X-Cache-Status: 1
-
-
Refactors and Documentation
Full Changelog: v0.7.0...v0.8.0
Migration Note:
X-Cache-Status is provided for compatibility and may be removed in a future major release. Please migrate to X-Httpcache-Status for continued support and improvements.
Call for Feedback
The project is nearing a stable v1.0.0 milestone.
Any further feedback, issues, or contributions are welcome as we finalize the implementation and documentation.