Image resizing 500x loading difference with same setup on different domains

Im deploying the same worker (it's just fetch to r2 bucket domain with cf: {image} Now the strange part: If I open this URL in the chrome dev tools with disabled cache https://preview.webstudio.ai/cgi/image/dev/f941d2f5de95fbce7ffa215ece78eedec54aefa701c8414fcbc3159dbbf51e3c.png?width=1280&height=800&format=png This URL is streamed for 11 - 15 seconds sometimes. (I have 1GB internet connection) Now SAME worker, SAME image, SAME r2 domain just deploying to the different Zone https://preview-ai-test.webstudio.is/cgi/image/dev/f941d2f5de95fbce7ffa215ece78eedec54aefa701c8414fcbc3159dbbf51e3c.png?width=1280&height=800&format=png 33 - 55 ms for me always what is like 500x faster. I have zero ideas why at the first case cache HIT image is streamed for 11-15 seconds. Something with domain settings. But WHAT? The only thing I see and it's strange is Server Timing Header for the slowest response.
cfL4;desc="?proto=QUIC&rtt=191179&min_rtt=99776&rtt_var=60550&sent=18&recv=15&lost=3&retrans=4&sent_bytes=8281&recv_bytes=4964&delivery_rate=13427&ipace=0&icwnd=12000&ss_exit_cwnd=8400&ss_exit_bw=0&ss_exit_reason=1&cwnd=8400&unsent_bytes=0&cid=60418142153ac556&ts=3836&inflight_dur=911&x=28"
cfL4;desc="?proto=QUIC&rtt=191179&min_rtt=99776&rtt_var=60550&sent=18&recv=15&lost=3&retrans=4&sent_bytes=8281&recv_bytes=4964&delivery_rate=13427&ipace=0&icwnd=12000&ss_exit_cwnd=8400&ss_exit_bw=0&ss_exit_reason=1&cwnd=8400&unsent_bytes=0&cid=60418142153ac556&ts=3836&inflight_dur=911&x=28"
In both cases cf-cache-status: HIT And strange cf-ray suffix: cf-ray: 986399081f834a1f-DXB for the fastest cf-ray: 986379e53b615452-JIB for slowest
3 Replies
Ivan Starkov
Ivan StarkovOP•7d ago
It's just the example we are experiencing image loading problem for https://preview.webstudio.ai across all Europe, it's not Dubai/Jibuty issue Enterprise 😉 plan, but 550x diff?
Ivan Starkov
Ivan StarkovOP•7d ago
200-400ms at my location. Like 5-10x vs best enterprise result

Did you find this page helpful?