3 ms·
Cloudflare use to only perform compression level 4 (level 9 is most compressed), because they found while the file they served was Bigger - the amount to time
by tiffanyh 3y ago
Cloudflare use to only perform compression level 4 (level 9 is most compressed), because they found while the file they served was Bigger - the amount to time to compress/decompress was longer for Level 9 … resulting in perceived slower loading/speeds of end user.
https://blog.cloudflare.com/this-is-brotli-from-origin/#:~:text=Since%202017%2C%20Cloudflare%20has%20been,if%20the%20origin%20supported%20Brotli https://blog.cloudflare.com/this-is-brotli-from-origin/#:~:t....
- stabbles 3y agoYou're linking to an article about brotli. I don't think gzip is affected by it. If anything, its decompression should be faster given fewer bytes to process. The usual reason to stick to gzip level 4 is that compression gets extremely slow at marginal savings. I would expect that cloudflare caches compressed data so they pay the compression cost only once.
- kevingadd 3y agoAt cloudflare's scale I can imagine that for many websites, compressed data falls out of cache frequently and then the file has to get compressed again on next request. For example if you're hosting a website that contains a ton of different news articles or user-submitted stories that's probably tens of thousands of separate blobs of text, and each one might only get read a few dozen times a day. The odds are much lower that the individual content is going to be in cache on the particular edge node that handles the request. The CDN is still useful in this case of course, both for ddos mitigation and because it can cache the common stuff like your website's stylesheets.