web streaming with Remix "defer" does not work with Page Rule->Cache Level->Cache all.

I have searched for a while and found out the following: In my current Remix Project with Cloudflare Pages, web streaming does not work when I set a "cache everything" Page Rule in Sites->Rules->Page Rules. On my local development server and also on the Cloudflare dev domain it works fine. i.e. the page starts loading immediately and the slower component appears via suspense after about two seconds. But on the production domain the page does not stream and appears until all the data is loaded after two seconds. After gradually disabling all WAF, caching and optimization settings, I found that streaming only works when I turn off my Page Rule: Cache Level-> cache everything. Can anyone explain me why? (My cache setup is: "cache all" and "respect existing headers from origin"). Addendum: the same effect also occurs when I set a cache rule with "Eligible for cache" and "Respect origin" instead of the page rule. No streaming possible with cache and respect origin headers?
0 Replies
No replies yetBe the first to reply to this messageJoin