Skip to content

feat(cache): add ETag-based image cache revalidation for Coil#988

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/etag-cache-revalidation
Jun 25, 2026
Merged

feat(cache): add ETag-based image cache revalidation for Coil#988
bmc08gt merged 1 commit into
code/cashfrom
feat/etag-cache-revalidation

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Token icons from currency-assets lack Cache-Control headers, so Coil's default strategy serves stale disk-cached images indefinitely. Add an opt-in ETagCacheStrategy that sends If-None-Match / If-Modified-Since conditional headers, letting the server respond 304 when unchanged. An offline fallback interceptor retries without revalidation so cached icons still display when the network is unavailable.

Token icons from currency-assets lack Cache-Control headers, so Coil's default strategy serves stale disk-cached images indefinitely. Add an opt-in ETagCacheStrategy that sends If-None-Match / If-Modified-Since conditional headers, letting the server respond 304 when unchanged. An offline fallback interceptor retries without revalidation so cached icons still display when the network is unavailable.

Signed-off-by: Brandon McAnsh <[email protected]>
@bmc08gt bmc08gt self-assigned this Jun 25, 2026
@bmc08gt bmc08gt merged commit 6c9095d into code/cash Jun 25, 2026
2 of 3 checks passed
@github-actions github-actions Bot added the type: feature New functionality label Jun 25, 2026
@bmc08gt bmc08gt deleted the feat/etag-cache-revalidation branch June 25, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant