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?
1 Reply
True, I missed that. However, to me, what I described above is an inconsistency rather than a feature request, because enabling Brotli causes degraded performance - Cloudflare for whatever reason decides that it will no longer let the response pass through edge servers untouched, so they then need to do decompression and send more data.