uv/crates/uv-client/src
Charlie Marsh 405ef66cef
Allow users to override index `cache-control` headers (#14620)
## Summary

You can now override the cache control headers for the Simple API, file
downloads, or both:

```toml
[[tool.uv.index]]
name = "example"
url = "https://example.com/simple"
cache-control = { api = "max-age=600", files = "max-age=365000000, immutable" }
```

Closes https://github.com/astral-sh/uv/issues/10444.
2025-07-15 10:00:04 -04:00
..
httpcache Turn off `clippy::struct_excessive_bools` rule (#14102) 2025-06-17 12:18:54 +02:00
base_client.rs Add `UV_HTTP_RETRIES` to customize retry counts (#14544) 2025-07-11 07:35:27 -05:00
cached_client.rs Allow users to override index `cache-control` headers (#14620) 2025-07-15 10:00:04 -04:00
error.rs Allow users to override index `cache-control` headers (#14620) 2025-07-15 10:00:04 -04:00
flat_index.rs Show retries for HTTP status code errors (#13897) 2025-06-16 10:14:00 +00:00
html.rs Make `DisplaySafeUrlRef` Copy and other minor PR follow-ups (#13683) 2025-05-28 06:36:18 -04:00
lib.rs Support netrc and same-origin credential propagation on index redirects (#14126) 2025-06-20 09:21:32 +02:00
linehaul.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
middleware.rs Add `DisplaySafeUrl` newtype to prevent leaking of credentials by default (#13560) 2025-05-27 00:05:30 +02:00
registry_client.rs Allow users to override index `cache-control` headers (#14620) 2025-07-15 10:00:04 -04:00
remote_metadata.rs Upgrade minimum Rust version to 1.83 (#9815) 2024-12-11 10:06:19 -06:00
rkyvutil.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
tls.rs Always attach URL to network errors (#8444) 2024-10-25 09:10:18 +00:00