Skip to content

fix: retry config fetch when CDN returns a config older than the SSE update - #120

Open
sanamio wants to merge 1 commit into
DevCycleHQ:mainfrom
sanamio:fix/retry-stale-sse-config
Open

sanamio wants to merge 1 commit into
DevCycleHQ:mainfrom
sanamio:fix/retry-stale-sse-config

Conversation

@sanamio

@sanamio sanamio commented Oct 15, 2026

Copy link
Copy Markdown

When a refetchConfig SSE message arrives before the CDN serves the new config, the response is older than the message and is discarded with "Request returned a last modified header older than the current stored timestamp. not saving config". Nothing retries, so the SDK keeps the old config until the next poll.

This retries the fetch in the background with backoff (up to 5 attempts), similar to the Go server SDK.

🤖 Generated with Claude Code

…update

When a refetchConfig SSE message arrives before the CDN has the new
config, the response is older than the message and is discarded.
Nothing retried, so the SDK kept the old config until the next poll.

Retry the fetch in the background with backoff (up to 5 attempts),
similar to the Go server SDK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sanamio
sanamio requested a review from a team as a code owner October 15, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant