Ohyzd
CDCloudflare Developers
•Created by Ohyzd on 12/29/2023 in #general-help
Brotli compression with messagepack
Hey.
My API is serving responses with content type application/msgpack. The browser and origin both support br and gzip. With Brotli disabled in Content Optimization, I get (supposedly) end-to-end compression, where the origin serves gzip and browser receives gzip. However, when I enable Brotli, the origin serves gzip and the browser receives an uncompressed response. I assume this has to do with the fact that my content type is not listed here https://developers.cloudflare.com/speed/optimization/content/brotli/content-compression/#compression-between-cloudflare-and-website-visitors.
Is it possible to customize that content type list or could messagepack MIME types (there doesn't seem to be a single standard) be added in by Cloudflare?
2 replies