Liquid, JavaScript, themes, sales channels
Hi All,
We have noticed that Shopify introduced a new CDN for users in China(ie. 'cdn.shopifycdn.net'). Therefore, we are planning to override our image url on our Mobile App to 'cdn.shopifycdn.net' instead of 'cdn.shopify.com'.
However, we are afraid that users outside China will experience longer loading time from 'cdn.shopifycdn.net'. Can any Shopify Staff give us some ideas on the CDN serving from this domain? We assume there are some smart DNS routing on 'cdn.shopifycdn.net', so user in China will be route to CDN in China (eg. Tencent Cloud, Akami) and for users not in China will be route to Fastly.
Solved! Go to the solution
This is an accepted solution.
cdn.shopifycdn.net was something we deployed to help speed things up for users in China. It is not used by individuals outside of China. We can't guarantee that we'll continue using it in the future which is why we haven't provided documentation to developers. For this reason, developers shouldn't rely on cdn.shopifycdn.net, nor would we advise to hardcode CDN anywhere in your code as you should rely on Shopify to do the smart switching.
Trevor | Community Moderator @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
This is an accepted solution.
cdn.shopifycdn.net was something we deployed to help speed things up for users in China. It is not used by individuals outside of China. We can't guarantee that we'll continue using it in the future which is why we haven't provided documentation to developers. For this reason, developers shouldn't rely on cdn.shopifycdn.net, nor would we advise to hardcode CDN anywhere in your code as you should rely on Shopify to do the smart switching.
Trevor | Community Moderator @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023