Skip to content

v0.8.0

Choose a tag to compare

@bartventer bartventer released this 26 Jun 15:26
· 52 commits to master since this release
v0.8.0
e74706b

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-Status header for migration from gregjones/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-Status is set on every response, while X-Cache-Status is omitted for misses and bypasses.

    • Example response headers for a stale cache hit:

      X-Httpcache-Status: STALE
      X-Cache-Status: 1
  • Refactors and Documentation

    • (3948ed8, b4ae1fb): Improved code clarity and maintainability (replaced goto with labelled continue, consolidated cache revalidation logic).
    • (0a92bbe f18215f): Expanded documentation for the memcache backend and stale-while-revalidate behavior.

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.