We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abdf901 commit cdfe729Copy full SHA for cdfe729
news/12257.feature.rst
@@ -0,0 +1 @@
1
+Store HTTP caching headers in ``~/.cache/pip/fetch-resolve`` to reduce bandwidth usage when ``--use-feature=metadata-cache`` is enabled.
src/pip/_internal/cli/req_command.py
@@ -503,7 +503,7 @@ def _build_package_finder(
503
ignore_requires_python=ignore_requires_python,
504
)
505
506
- if options.cache_dir:
+ if bool(options.cache_dir) and ("metadata-cache" in options.features_enabled):
507
fetch_resolve_cache = FetchResolveCache(options.cache_dir)
508
else:
509
fetch_resolve_cache = None
0 commit comments