Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Prototype HttpCache as a Client middleware #18

Draft
wants to merge 8 commits into
base: trunk
Choose a base branch
from

Conversation

adamziel
Copy link
Contributor

@adamziel adamziel commented May 24, 2025

Work in progress, do not merge.

Introduces a CacheClient class that wraps Client to cache HTTP responses locally. It supports:

  • Request headers: If-None-Match, If-Modified-Since
  • Response headers: cache-control, etag, vary, last-modified, expires, max-age, s-maxage
  • 304 responses
  • Cache invalidation

Remaining work

This PR works, but is left as a draft until someone provides a compelling use-case. Once that happens, we'll need to:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant