I’m currently experiencing issues with zstd compression being applied to JavaScript files on my site. This results in broken scripts and Unexpected end of input errors in the browser.
What steps have you taken to resolve the issue?
What is the proper way to fully disable zstd compression for my domain?
You’re right — the 500 error was happening temporarily when the Cloudflare proxy was disabled for testing. I’ve re-enabled the proxy now, and the site is working correctly.
That said, the issue I’m still facing is that JavaScript files are being served with zstd compression from Cloudflare, which breaks our Nuxt.js app with Unexpected end of input errors in the browser.
Even when using a Worker to rewrite Accept-Encoding to only allow gzip, deflate, Cloudflare still seems to apply zstd at the edge level.