Hi there,
CloudFlare uses the Cache-Control: no-transform header to NOT compress the response (https://support.cloudflare.com/hc/en-us/articles/200168396).
The issue #22525 and associated PR added $headers[‘Cache-Control’] = ‘no-transform, no-cache, no-store, must-revalidate’; to WC_Cache_Helper, and this is applied to every request when WC is active.
So for websites using WooCommerce and CloudFlare, their content isn't gzip/brotli compressed.
The original issue had the following in the description:
Note that this header generally isn't necessary on non-WC pages; so, consider not opting out the whole site.
But it seems this consideration was left out. Is there a particular reason for adding those headers to every page, or could it be limited to the cart/checkout pages?
Removing the compression on everything is quite detrimental to performance.
Marc.