Cloud CDN is slower than the Cloud storage bucket

483 Views Asked by At

I have set up the cloud cdn with using storage bucket as a backend.

I have expected to speed up the load by using cdn.

However, it seems cdn makes it even slower significantly.

https://cdn.gollala.org/koxp5r5u.png

https://storage.googleapis.com/gollala-product-images/koxp5r5u.png

Those are the same picture and cdn is pointing at the picture below.

However, it results the top one takes 270ms and bottom one takes 90ms.

When I used AWS CloudFront with the same picture it took 40 ms.

https://cdn.clayful.io/stores/JS2TEF7KYHK3.JHWZNVH6PYF2/images/X7HXD3QREH26/v1/koxp5r5u.jpg?width=300&height=400

I have a feeling that there is something wrong with the caching because the initial time does not differ as the other url does.

However, the console says cache hit is 100%. (and originally it shows N/A and if I query, then 100%)

I did everything in a "recommended" way and also enabled cdn as instructed.

Any idea? or is it an ordinary behavior?

0

There are 0 best solutions below