Skip to content

fix(pipeline): propagate Last-Modified from probe to candidate distribution#365

Merged
ddeboer merged 1 commit into
mainfrom
worktree-fix-296-propagate-last-modified
Apr 28, 2026
Merged

fix(pipeline): propagate Last-Modified from probe to candidate distribution#365
ddeboer merged 1 commit into
mainfrom
worktree-fix-296-propagate-last-modified

Conversation

@ddeboer
Copy link
Copy Markdown
Member

@ddeboer ddeboer commented Apr 28, 2026

Closes #296.

Summary

ImportResolver.importDataset() now copies the HTTP Last-Modified header captured during probing (ProbeResult.lastModified) onto candidate distributions before passing them to the importer. This lets LastModifiedDownloader.localFileIsUpToDate() skip redundant downloads – and preserves the QLever index cache – for distributions that don’t have lastModified set by the dataset source (e.g. manual dataset.ttl selections).

Existing lastModified values (e.g. those set by @lde/dataset-registry-client from the registry’s modified field) are preserved.

Test plan

  • New unit test verifies Last-Modified propagation from probe to candidate
  • New unit test verifies an existing lastModified is not overwritten by probe value
  • npx nx test @lde/pipeline (213 tests pass)

…bution

Closes #296. `ImportResolver.importDataset()` now copies the HTTP
`Last-Modified` header captured during probing onto candidate
distributions before passing them to the importer. This lets
`LastModifiedDownloader` skip redundant downloads (and preserves the
QLever index cache) for distributions that don't have `lastModified`
set by the dataset source – e.g. manual `dataset.ttl` selections.
@ddeboer ddeboer merged commit d1159aa into main Apr 28, 2026
2 checks passed
@ddeboer ddeboer deleted the worktree-fix-296-propagate-last-modified branch April 28, 2026 17:26
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.

Propagate HTTP Last-Modified from probe to distribution for download caching

1 participant