Google Cloud Storage NodeJS Library v0.33 https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.33.0/storage/file?method=createWriteStream
Can anyone clarify what does the gzip
option for createWriteStream
exactly do? The documentation is a bit unclear to me. The description states:
Automatically gzip the file. This will set options.metadata.contentEncoding to gzip.
It appears that it can do one of two things:
- Actually gzip the file (requiring user to unzip file manually)
- Automatically gzip the http response, but the file upon transfer completion is not gzipped. (i.e. HTTP compression)
Since contentEncoding is set, I presume that the case is actually #1. If transferEncoding was set instead, then I would guess #2. (Ref: Transfer-Encoding: gzip vs. Content-Encoding: gzip). However, I'm concerned that the contentEncoding is actually used as a transport layer detail.