Cloudfare is Truncating Large Html source on Desktop Chrome

This issue is extremely similar to this issue that occurred in 2021 https://community.cloudflare.com/t/cloudflare-frequently-returning-incomplete-files-to-browsers/305247

I noticed a part of my homepage was blank on Wednesday. The issue only seemed to affect Chrome desktop and didn’t occur on mobile at all. At first, I thought it was an issue caused by a recent Chrome update but discovered this affected earlier versions of Chrome too. After lots of debugging, I discovered the HTML source is actually prematurely trimmed if you look at “View Page Source”.

https://test.trackalacker.com/?page_limit=high
You can see here the source in Chrome terminates early,


but on other browsers (or on Chrome mobile) the source does not terminate. If you look in Safari the source does not terminate in this way (wouldn’t let me post a second embed).

To stop my site from being broken I reduced the amount of HTML being rendered on the page (and added a param “page_limit=high” to allow seeing the issue). Doing this fixed the issue temporarily but didn’t solve the problem obviously. This also occurs on other pages where the source is large.

I believe I’ve isolated this to Cloudflare. I added an additional CNAME record https://test.trackalacker.com/?page_limit=high which has Cloudflare proxy turned off. On this URL the issue does not occur. I’ve tried turning off all of the speed optimizations in Cloudflare (that were previously working fine) to see if one of those caused the problem however nothing has made a difference. The only thing that works is turning off Cloudflare proxy entirely.

Any ideas what is going on?

This issue seemed to have gone away on its own and I’m still not really sure what caused it.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.