3 ms·
This is general CDN question: how does one enable compression for CDN-served resources? In Apache I just enable mod_deflate or mod_gzip, or serve up a .gz and
by tlrobinson 18y ago
This is general CDN question: how does one enable compression for CDN-served resources?
In Apache I just enable mod_deflate or mod_gzip, or serve up a .gz and set the Content-Encoding to gzip.
Do CDNs offer this somehow?
Can I set arbitrary headers like Content-Encoding?
Also, does anyone have stats on which browsers support deflate and gzip encodings? I imagine the vast majority at this point do.
- crabapple 18y agothe point of a cdn is to give you an SLA and honor it. how they configure their delivery platform should be opaque to you, its not like you are going to be getting a shell on the cdn machines anyway
- tlrobinson 18y agoSo can someone else answer my question then? If I want my content gzip encoded are CDNs simply not an option?
- RyanGWU82 18y agoWith Amazon S3, you can set the Content-Encoding header to enable gzip. Here's a tutorial: http://devblog.famundo.com/articles/2007/03/02/serving-compressed-content-from-amazons-s3 http://devblog.famundo.com/articles/2007/03/02/serving-compr... I'm not sure yet whether you can do that with CloudFront.