Skip to content

Avoid unchanged preindexed source downloads#36

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
masterfrom
mamoreau-devolutions/index-refresh-optimization
Jun 3, 2026
Merged

Avoid unchanged preindexed source downloads#36
Gabriel Dufresne (GabrielDuf) merged 1 commit into
masterfrom
mamoreau-devolutions/index-refresh-optimization

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Persist preindexed source HTTP validators (ETag / LastModified) in C# and Rust source metadata
  • Skip unchanged refreshes via WinGet-style x-ms-meta-sourceversion checks and conditional GET 304 Not Modified handling
  • Keep local index.db intact and reset freshness after successful unchanged probes

Validation

  • cargo test -p pinget-core --manifest-path rust\Cargo.toml
  • cargo clippy -q --manifest-path rust\Cargo.toml --workspace --tests -- -D warnings
  • dotnet test dotnet\src\Devolutions.Pinget.Core.Tests\Devolutions.Pinget.Core.Tests.csproj -c Release
  • dotnet build dotnet\Devolutions.Pinget.slnx -c Release
  • git --no-pager diff --check

Persist HTTP validators for preindexed sources and use them to skip rewriting the cached index when the CDN reports the package has not changed. Mirror WinGet's source-version check so unchanged refresh probes reset local freshness without redownloading the MSIX.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 892dc32 into master Jun 3, 2026
13 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the mamoreau-devolutions/index-refresh-optimization branch June 3, 2026 17:21
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.

2 participants