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
Andrew Nesbitt 7346008aa5
Add metadata TTL and stale-while-revalidate support
Cached metadata is now served directly within a configurable TTL window
(default 5m) without contacting upstream, reducing latency and upstream
load. When upstream is unreachable and the cache is past its TTL, stale
content is served with a Warning: 110 header per RFC 7234.

New config: `metadata_ttl` (YAML) / `PROXY_METADATA_TTL` (env).
Set to "0" to always revalidate with upstream.
2026-04-13 09:01:05 +01:00
..
config Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
cooldown Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
database Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
enrichment Use shared github.com/git-pkgs/enrichment module 2026-02-06 10:37:00 +00:00
handler Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
metrics Refactoring and features 2026-02-03 22:40:40 +00:00
mirror Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
server Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
storage Fix cross-device link error when running in Docker with volumes (#66) 2026-04-06 13:07:31 +01:00