Zstd prevents text/html streaming output (Free Plan)

What is the name of the domain?

bizarre.kiev.ua

What is the issue you’re encountering

Site (an old-style web-chat, no websockets) has one cgi for streaming text chat messages realtime (by javascript code), traffic is very low but work time of this cgi can be hours. There was no problem by now, but last time it stops functioning.

What steps have you taken to resolve the issue?

Disabling “enable-zstd-content-encoding” flag in chrome solved the problem for me, but is it possible to disable Zstd in Cloudflare?
Or maybe tweak it to act as previous compression type, w/o buffering?

1 Like

Can confirm, this issue started very recently (past days?). This causes website owners to not have any control over output buffering anymore, which in some situations it may be critical.

Manually disabling Zstd in Chrome fixes the issue for self as mentioned by OP, but you can’t control this for others, and the option to disable it in Chrome will probably disappear when they finish the “Zstd experiment”

Yes. First time I noticed it was yesterday (Aug 20 2024)

Hi @pufolog apologies about this. We have identified a bug in ZSTD and Streaming requests. We are releasing a hotfix now and should be complete in the coming hours.

Sorry for the issue caused. I will let you know when this is complete and hopefully should solve the issue.

Matt

7 Likes

I’ll be waiting, thank you! I temporary worked it around by replacing streaming to refresh mode, it works, but network traffic and server load increased dramatically.
And a question: if it was done with Server-Sent Events ( Content-Type: text/event-stream), would the problem remains (at current state of this bug)?

Just tested and looks like it works fine, as before.

2 Likes

Also confirming it’s ok now. Thank you for the quick fix

1 Like

Maybe it’s just temporary rollback to previous version, mbullock not confirmed yet that the fixing is completed.

It’s not working now (since ~ 7-8 hours).

For me it’s still working ok without interruptions.

We’re still seeing the same issue. We added a rule so we don’t use cloudflare cache for any of our js files (which mostly defeats the cloudflare purpose for us, so hoping this gets resolved soon).

I tried to disable cache for streaming cgi, but it didn’t disable zstd, so didn’t help. But now it still looks like works fine for me.

Could you explain how did you do that?

@gruceing and @by2 can you let me know your impacted zones and how we can replicate?

1 Like

Seems like *.enab.app + enab.app (and also some of another zones). This problem happened yesterday on “ASIACELL ISP” but not with other ISP. The chrome browser shows “The connection was reset.”.

About replication, I have no idea actually.

Seems like effects all Nuxt JS based sites.

Not all.
https://why-productions.com … working fine while its built with nuxt.

image

是的,我注意到cloudflare已经为所有站点启用zstd

我在html页面偶尔遇到首次打开时整个页面出现乱码字符的问题,页面完全不正常显示,F5刷新后恢复正常,不知道现在bug修复了吗?

image


Seems like it’s gzip for me but still i can’t access the website from my ISP.