Skip to content

fix(cache): respect max-age before ETag revalidation#993

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/etag-max-age-freshness
Jun 26, 2026
Merged

fix(cache): respect max-age before ETag revalidation#993
bmc08gt merged 1 commit into
code/cashfrom
fix/etag-max-age-freshness

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

ETagCacheStrategy was forcing a network trip on every cold start, causing token icons to flash. Parse Cache-Control max-age from cached response headers and only revalidate once the entry is stale.

ETagCacheStrategy was forcing a network trip on every cold start, causing token icons to flash. Parse Cache-Control max-age from cached response headers and only revalidate once the entry is stale.

Signed-off-by: Brandon McAnsh <[email protected]>
@bmc08gt bmc08gt self-assigned this Jun 26, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Jun 26, 2026
@bmc08gt bmc08gt merged commit 0424208 into code/cash Jun 26, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/etag-max-age-freshness branch June 26, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant