S3BinaryCacheStore: Support compression of narinfo and log files
You can now set the store parameter "text-compression=br" to compress textual files in the binary cache (i.e. narinfo and logs) using Brotli. This sets the Content-Encoding header; the extension of compressed files is unchanged. You can separately specify the compression of log files using "log-compression=br". This is useful when you don't want to compress narinfo files for backward compatibility.
Showing
- src/libstore/binary-cache-store.cc 1 addition, 0 deletionssrc/libstore/binary-cache-store.cc
- src/libstore/download.cc 11 additions, 5 deletionssrc/libstore/download.cc
- src/libstore/download.hh 3 additions, 0 deletionssrc/libstore/download.hh
- src/libstore/s3-binary-cache-store.cc 25 additions, 3 deletionssrc/libstore/s3-binary-cache-store.cc
- src/libutil/compression.cc 31 additions, 0 deletionssrc/libutil/compression.cc
Loading
Please register or sign in to comment