@vltpkg/cache-unzip
This is a script that can be run as a detached background process to un-gzip any cached response bodies in the vlt cache.
Usage
Whenever you get a cache entry with a gzipped body, tell this module about it.
On process exit, these registered keys will be passed as arguments to a detached deref’ed vlt-cache-unzip
process. So,
the main program exits normally, but the worker ignores the SIGHUP
and keeps going until it’s done. The next time that
cache entry is read, it won’t have to be unzipped.
Why Do This
Because it’s faster to not have to decompress the same content more times than necessary.