Files
pnpm/network/fetch
Zoltan Kochan 421d120972 perf: use If-Modified-Since for conditional metadata fetches (#11161)
Before fetching package metadata from the registry, stat the local cache
file and send its mtime as an If-Modified-Since header. If the registry
returns 304 Not Modified, read the local cache instead of downloading
the full response body. This saves bandwidth and latency for packages
whose metadata hasn't changed since the last fetch.

Registries that don't support If-Modified-Since simply return 200 as
before, so there is no behavior change for unsupported registries.
2026-04-01 12:39:13 +02:00
..
2025-10-21 15:30:20 +02:00

@pnpm/fetch

node-fetch with retries

npm version

Installation

pnpm add @pnpm/fetch

License

MIT