How do I enable gzip compression on Spaces?

June 12, 2019 320 views
DigitalOcean CentOS

(I'm referring to the DigitalOcean Spaces + CDN Product)

How do I enable gzip compression on web assets that I have in my Space and using a CDN for? I've defined the Content-Encoding value to gzip and flushed the cache but it hasn't worked.

2 Answers

Hey, did you find any solution?
For me Gzip encoding is only work when in origin link.

Same for me compression breaks Javascript files.

Have another answer? Share your knowledge.