You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Content-Encoding header is an important header for GCS, it allows you to upload content which has been gzipped, saving on storage costs, and then when GCS serves the content, it will transcode it as necessary, unzipping if a client doesn't supply an Accept-Encoding: gzip header. See the gcs docs. The problem is, the Alpakka GCS API provides no means to set the Content-Encoding header on an object when uploading. Setting it in the object custom metadata doesn't work, GCS will ignore any Content-Encoding values specified in the custom metadata, it must be set as an HTTP header similar to Content-Type.
I believe there are other metadata headers that can only be supplied as HTTP headers, and not as custom metadata, but I haven't tested those.
The text was updated successfully, but these errors were encountered:
The
Content-Encoding
header is an important header for GCS, it allows you to upload content which has been gzipped, saving on storage costs, and then when GCS serves the content, it will transcode it as necessary, unzipping if a client doesn't supply anAccept-Encoding: gzip
header. See the gcs docs. The problem is, the Alpakka GCS API provides no means to set theContent-Encoding
header on an object when uploading. Setting it in the object custom metadata doesn't work, GCS will ignore anyContent-Encoding
values specified in the custom metadata, it must be set as an HTTP header similar toContent-Type
.I believe there are other metadata headers that can only be supplied as HTTP headers, and not as custom metadata, but I haven't tested those.
The text was updated successfully, but these errors were encountered: