1
0
Fork 1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-06-02 08:38:17 -04:00
pkg-proxy/internal/mirror
Andrew Nesbitt c01f0a5c05
Fix metadata caching, 404 propagation, mirror progress, and registry stubs
- ProxyCached now stores upstream Last-Modified in the cache and uses it
  (along with ETag) for conditional request handling, returning 304 when
  client validators match. Adds Content-Length to cached responses.

- Handlers calling FetchOrCacheMetadata (pypi, composer, pub, nuget) now
  check for ErrUpstreamNotFound and return 404 instead of 502, matching
  the existing npm and cargo behavior.

- Mirror jobs report live progress via a periodic callback while running,
  so API polls return real counts instead of zeroed progress.

- Registry mirroring removed from CLI flags, API acceptance, README, and
  docs since every enumerator was a stub returning "not yet implemented".

- Added tests for the conditional metadata path (ETag/If-None-Match,
  Last-Modified/If-Modified-Since, 304 responses, header omission).
2026-04-13 09:01:05 +01:00
..
job.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
job_test.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
mirror.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
mirror_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
registry.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
registry_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
source.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
source_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00