mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
858 B
858 B
| synopsis | prs |
|---|---|
| HTTP binary caches now support transparent compression for metadata |
HTTP binary cache stores can now compress .narinfo, .ls, and build log files before uploading them,
reducing bandwidth usage and storage requirements. The compression is applied transparently using the
Content-Encoding header, allowing compatible clients to automatically decompress the files.
Three new configuration options control this behavior:
narinfo-compression: Compression method for.narinfofilesls-compression: Compression method for.lsfileslog-compression: Compression method for build logs inlog/directory
Example usage:
nix copy --to 'http://cache.example.com?narinfo-compression=gzip&ls-compression=gzip' /nix/store/...
nix store copy-log --to 'http://cache.example.com?log-compression=br' /nix/store/...