Skip to content

Fix timezone-dependent release metadata refreshes - #577

Merged
davkean merged 1 commit into
dotnet:mainfrom
davkean:dev/davkean/fix-release-cache-timestamps
Oct 31, 2026
Merged

davkean merged 1 commit into
dotnet:mainfrom
davkean:dev/davkean/fix-release-cache-timestamps

Conversation

@davkean

@davkean davkean commented Oct 30, 2026

Copy link
Copy Markdown
Member

Release metadata cache freshness compares a local file timestamp with an HTTP Last-Modified timestamp without accounting for the local time zone. This can download an unchanged file in time zones behind UTC or keep an outdated file in time zones ahead of UTC. Comparing both timestamps in UTC makes freshness decisions independent of the machine's time zone while preserving the existing behavior when Last-Modified is absent.

Cache freshness mixed local file time with HTTP modification time. Compare both timestamps in UTC so timezone offsets cannot cause unnecessary downloads or prevent required updates.

Co-authored-by: Copilot <[email protected]>
@davkean
davkean marked this pull request as ready for review October 30, 2026 05:16
@davkean
davkean requested a review from joeloff as a code owner October 30, 2026 05:16
@davkean
davkean merged commit 940e0b0 into dotnet:main Oct 31, 2026
9 checks passed
@davkean
davkean deleted the dev/davkean/fix-release-cache-timestamps branch October 31, 2026 00:36
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.

2 participants