Skip to content

fix(app): clear URLCache on refresh so new data is fetched#133

Merged
p-linnane merged 1 commit into
mainfrom
fix/refresh-clears-url-cache
Mar 25, 2026
Merged

fix(app): clear URLCache on refresh so new data is fetched#133
p-linnane merged 1 commit into
mainfrom
fix/refresh-clears-url-cache

Conversation

@p-linnane
Copy link
Copy Markdown
Member

Summary

  • Clear URLCache.shared in DataProvider.clearCache() so the refresh button actually bypasses cached HTTP responses

The refresh button only cleared the in-memory cache, not URLSession's
disk cache. This meant stale responses from raw.githubusercontent.com
persisted across app restarts until the cache expired naturally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane p-linnane merged commit ead90e9 into main Mar 25, 2026
6 checks passed
@p-linnane p-linnane deleted the fix/refresh-clears-url-cache branch March 25, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant