Hi Alex,
All cdn images have link at primary domain.
but robots.txt of
https://cdn.mysite.com has
User-agent: *
Disallow: /
So I guess google bots not able to crawl
https://cdn.mysite.com even though all products images links are there at
https://www.mysite.com
So one idea is to use following robots.txt at
https://cdn.mysite.com
User-agent: *
Disallow: /
Allow: /images/
This way google bots can only access images only at
https://cdn.mysite.com & not any other content. And you have to first add url cdn.mysite.com at google webmaster tools so google bots come to know that mysite.com is interlinked with cdn.mysite.com. I have verified cdn.mysite.com using google analytics code method so it will consider both site as same.
This is what my logic.
The other idea is to upload products-sitemap with images url at
https://www.mysite.com but there is no such site map generator is available for x-cart
I want to know how other people have successfully managed with CDN without losing images in google search results.