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/handler
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
..
cargo.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
cargo_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
composer.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
composer_test.go Add failing tests for composer dist URL and shared reference bugs 2026-04-06 17:07:20 +01:00
conan.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
conan_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
conda.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
conda_test.go Add cooldown support for Conda (#68) 2026-04-06 13:16:00 +01:00
container.go Fix container blob caching by passing auth token to fetcher (#44) 2026-04-01 15:22:39 +01:00
container_test.go Fix container blob caching by passing auth token to fetcher (#44) 2026-04-01 15:22:39 +01:00
cran.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
cran_test.go Hello world 2026-01-20 22:00:31 +00:00
debian.go Fix review issues in mirror feature 2026-04-13 09:01:04 +01:00
debian_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
download_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
gem.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
gem_test.go Add cooldown support for RubyGems 2026-04-06 13:16:26 +01:00
go.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
go_test.go Hello world 2026-01-20 22:00:31 +00:00
handler.go Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
handler_test.go Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
hex.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
hex_test.go Add cooldown support for Hex 2026-04-06 13:18:57 +01:00
maven.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
maven_test.go Hello world 2026-01-20 22:00:31 +00:00
npm.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
npm_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
nuget.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
nuget_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
path_traversal_test.go Reject path traversal in debian and rpm handlers 2026-03-12 12:05:52 +00:00
pub.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
pub_test.go Add version cooldown to filter recently published packages 2026-03-04 19:00:31 +00:00
pypi.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
pypi_test.go Add upstream URL tests for all ecosystem download handlers (#51) 2026-04-01 15:22:52 +01:00
read_metadata_test.go Fix silent truncation of large npm metadata responses 2026-04-08 16:02:30 +01:00
rpm.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
rpm_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00