Why are my product images loading slowly on the server side?

PietroSld
Shopify Partner
2 0 2

Hello,

i'm trying to understand why the images of my products sometimes takes like 5 seconds to load.

 

Sometime they load really fast, but some times seems that they are being regenerated on the server side and not loaded from the CDN cache. I'm not modifying the products from the control panel so they should be just loaded from the cache, right ? 

 

Here you can see a 68kb image being loaded from the CDN in 4.67 seconds, with server response 4.67 and 3.90ms of download.

PietroSld_0-1683564685435.png

 

Can someone help me understand ?

 

Thanks!

 

Replies 3 (3)

devhoag
Shopify Partner
2 0 5

We're experiencing the exact same issues with transparent PNGs and server response times. If hosting on any other CDN, this wouldn't be an issue, so I was surprised. Would love if this was resolved as it's not standard CDN behaviour.

Tryhard
Excursionist
25 2 16

I am currently developing a headless shopify store with sveltekit and this issue is destroying all my efforts. Shopify CDN called "Imagery" is garbage and doesn't seem to use cache at all.

rondo10
Shopify Partner
1 0 0

I'm facing the same challenge, downloading 600kb image is taking almost 4 seconds:

rondo10_0-1696267210923.png