Website blank with error Failed to load resource: net::ERR_CONTENT_DECODING_FAILED in console

Hi
Site https://jra-main.netlify.app/
Next.js 15 website

On 2 occasions now my website has been completely blank with just this error in the console:
Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

A cache clear build has resolved the issue both times, but there appears to have been no activity that has cause the site to fail.

It seems this could be a CDN issue with compressed chunks - what is going on?

Many thanks
Daniel

I’m not seeing the issue. Please provide a HAR file that shows it.

Hi

That’s because a redeploy fixed it. I don’t have a HAR file as it was redeployed immediately the error was spotted.

This has happened twice now at random times.

It seems to be a CDN issue?

Thanks

HI, @djavco. My best guess is that your may have pre-compressed assets on the builds with the error. Netlify automatically provides compressed HTTP responses to any clients that support them so this means that, if you did pre-compressed assets, they are being compressed twice and only decoded once by the browser.

If so, my recommendation would be to not attempt to pre-compress assets and allow Netlify’s automatic compression to do the work required.

If you see this error again, a HAR recording will almost certainly have the information needed to confirm the root cause here. If you make a HAR recording of the error, please let us know.