Can I configure Object Storage to work with gzipped files?

Linode Staff

Is there a way to configure my bucket to serve assets as gzip compressed for performance gain and save bandwidth?

1 Reply

Linode Staff

Since the buckets themselves wouldn't have compression functionality, you will need to compress any files before uploading them to your Object Storage bucket. This would be the case for any S3 compatible storage solution, including Linode Object Storage. By compressing the files ahead of time, it should theoretically save on bandwidth since the files would be smaller by nature of the gzip file.

I found a script that someone wrote on how to use gzip compression and upload the compressed file to a target bucket:

How to store and retrieve gzip-compressed objects in AWS S3

And there are a couple other resources listed in this Stack Overflow post:

GZIP Compression on static Amazon S3 files

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct