Transparent compression: i.e. user uploads content uncompressed, R2 automatically applies gzip or br

Transparent compression: i.e. user uploads content uncompressed, R2 automatically applies gzip or brotli per request based on accept-encoding. Came up almost instantly for anyone serving static assets to browsers, always had to put something in front of S3 to apply a compression stream (now Cloudfront can perform this role as well, but not S3 itself). R2 has all of the info per request (content-length, content-type, content bytes for the content, accept-encoding on the incoming request) to do this too
Was this page helpful?