-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gsutil interactions with transcoding and compression
This change sends accept-encoding: gzip to the service only when the requested object has content-encoding: gzip or the entire range of the object is being requested. This prevents compressive transcoding by the service. Compressive transcoding can cause responses to range requests to instead issue all of the bytes of the object, which, while legal according to the HTTP spec, breaks resumability. The change also adds cache-control no-transform to objects that are uploaded (via the -z or -Z options) with gzipped content-encoding. This ensures that objects that are stored doubly-compressed are served as-is, without removing the first layer of compression. This is necessary because removing the first layer of compression would cause the content served to the user to differ from the cloud-stored hashes for the doubly-compressed object. Fixes #324
- Loading branch information
Showing
10 changed files
with
133 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.