Mobile app version of vmapp.org
Login or Join
BetL925

: Should I add the CDN or the source URL of an image to the XML image sitemap? I'm creating a WP plugin and I have the source URL for the image and the CDN URL to the image as well that

@BetL925

Posted in: #Cdn #Sitemap #XmlSitemap

I'm creating a WP plugin and I have the source URL for the image and the CDN URL to the image as well that is generated by replacing the host to the CDN host. Which is better, if I add the source URL and expose the image to the index without the CDN, or add the CDN URL and risk that it's on a different domain or the CDN subdomain is not allowed to be in the sitemap? Perhaps there is something I'm missing that is better practice.

<loc>http://mydomain.com/my-page/</loc>
<lastmod>2013-05-19T13:44:58+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
<image:image>
<image:loc>http://mydomain.com/myimage.jpg</image:loc>
<image:title>A title</image:title>
<image:caption>A caption</image:caption>
</image:image>


vs

<loc>http://mydomain.com/my-page/</loc>
<lastmod>2013-05-19T13:44:58+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.6</priority>
<image:image>
<image:loc>http://cdn.possiblyanotherdomain.com/myimage.jpg</image:loc>
<image:title>A title</image:title>
<image:caption>A caption</image:caption>
</image:image>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

I believe that Google will only follow that below to the TLD domain so subdomains such as cdn.yourdomain.com will work but a completely different domain will not. Most if not all CDN networks you can setup your domain to work in harmony with one another and should be no reason to use another domain.

Personally note:

In this day and age it's pretty pointless to include images within the sitemap, it only bloats the sitemap unnecessary. Google will never rank a image well purely based on a sitemap title or caption, it works out the image indexing based on the algorithm of the content of the page that the image it is found on and many on page factors confirm the picture contents. So when that page gets indexed so will the image.... so it's pretty pointless.

Google suggested images in sitemaps in 2009 I believe and so much has changed since then.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme