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/server
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
..
static Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
templates Escape user-controlled strings in browse source JavaScript 2026-03-12 11:59:14 +00:00
api.go Fix Composer minified metadata expansion and namespaced package routing (#63) 2026-04-06 13:07:02 +01:00
api_test.go Fix Composer minified metadata expansion and namespaced package routing (#63) 2026-04-06 13:07:02 +01:00
browse.go Clean up review feedback: use path.Ext for extension checks, remove dead getStripPrefix, add openArchive tests 2026-04-06 19:06:48 +01:00
browse_test.go Clean up review feedback: use path.Ext for extension checks, remove dead getStripPrefix, add openArchive tests 2026-04-06 19:06:48 +01:00
dashboard.go Sort the ecosystems list for presentation in the UI 2026-04-06 18:06:16 -04:00
middleware.go Refactoring and features 2026-02-03 22:40:40 +00:00
middleware_test.go Add handler download flow and server utility tests 2026-03-17 20:31:54 +00:00
mirror_api.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
mirror_api_test.go Fix concurrency, resource, and reliability issues in mirror 2026-04-13 09:01:04 +01:00
packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
resolve.go Fix Composer minified metadata expansion and namespaced package routing (#63) 2026-04-06 13:07:02 +01:00
resolve_test.go Fix Composer minified metadata expansion and namespaced package routing (#63) 2026-04-06 13:07:02 +01:00
server.go Add metadata TTL and stale-while-revalidate support 2026-04-13 09:01:05 +01:00
server_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
static.go Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
swagger_gen.go Add generated OpenAPI docs support 2026-03-12 11:49:31 +00:00
templates.go Lazy-load HTML templates behind sync.Once (#59) 2026-04-06 13:06:25 +01:00
templates_test.go Clean up review feedback: use path.Ext for extension checks, remove dead getStripPrefix, add openArchive tests 2026-04-06 19:06:48 +01:00