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.
In both cases
cf-cache-status: HIT
And strange cf-ray suffix:
cf-ray: 986399081f834a1f-DXB
for the fastest
cf-ray: 986379e53b615452-JIB
for slowest3 Replies
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?
200-400ms at my location.
Like 5-10x vs best enterprise result