An image sitemap can point to an image on media.example-cdn.net while its page lives on shop.example. Google allows image URLs from another domain. Search Central documentation conditions their use in an image sitemap on verifying both domains in Search Console. And a correctly written sitemap still does not show whether Google can actually fetch the image file.
The diagnosis therefore needs two separate answers: does the XML sitemap describe the relationship between page and image correctly, and can a crawler fetch the image URL it names? Check the page, CDN host and sitemap as separate technical objects. A 200 response from the shop page says nothing about the CDN host.
What does each URL describe?
An image sitemap entry associates a page URL with one or more image URLs. In simplified form, it looks like this:
xml<url>
<loc>https://shop.example/en/decaf-coffee</loc>
<image:image>
<image:loc>https://media.example-cdn.net/products/coffee/decaf-front.webp</image:loc>
</image:image>
</url>
<loc> identifies the page where the image is relevant. <image:loc> names the image file. The page and the asset can use different hosts. In this example, shop.example needs to serve the page and media.example-cdn.net needs to return the named image. Google requires both domains to be verified in Search Console for cross-domain image URLs in an image sitemap. That requirement supports the sitemap relationship; it does not promise that every image will appear in Google Images.
The distinction matters when a business uses several shops, CDN zones or agency accounts. A Search Console property for the shop does not automatically prove that the CDN host is verified. A Domain property can cover more than a URL-prefix property. Check which property types exist for the actual hosts and whether the person submitting the sitemap can access them. Do not add a verification file or change DNS before coordinating with the domain owner. Google explains property types and methods in its direct Search Console site verification instructions.
The crawling glossary entry explains why a page and a resource are separate fetch targets. The sitemap also needs the intended canonical page URL. An image attached to a redirected or unintended language version should not be treated as a confirmed example for the preferred page.
Four checks for the CDN image path
1. Confirm domain verification
List the hosts used in <loc> and <image:loc>. Group them by owner: website, CDN, external image service or provider. Then check Search Console to see whether each required domain is verified. Google explains property types and methods in its direct Search Console site verification instructions.
Verification addresses ownership or access. It does not prove Google fetched a particular file or indexed it. If an external provider controls the CDN host, find out who can manage verification. A provider name in a contract is not technical proof that the property is verified.
2. Fetch the exact image URL with GET
Test the full URL from <image:loc> with a normal GET request. Record the initial status, each Location response, final host, Content-Type, cache headers and returned file size. A browser displaying a cached image does not prove that the current CDN endpoint works without a session or cookie.
A HEAD request is a useful quick check, but some CDNs, WAFs and image transformation services handle HEAD and GET differently. A reproducible image fetch is the meaningful availability test. If access controls are involved, make sure you are testing the production endpoint rather than an internal preview host. One automated request with a Googlebot user-agent does not reproduce Google's complete fetching system.
3. Check robots rules for page and asset separately
Inspect the robots.txt file on the page host and the CDN host. A rule for shop.example does not automatically control media.example-cdn.net. If the image should be available for image search, the relevant robots rules must not block its fetch. Check specific user-agent groups and longer path patterns, not only the first Disallow line you find.
A blocked resource and a non-indexable page are different findings. The page can be crawlable while its image is blocked. The image can be available while its page has noindex or points to a different canonical. The indexing glossary entry helps keep indexing separate from the fetch question. Sitemap entries do not override a robots restriction.
4. Record redirects and changing asset URLs
Many CDNs add query parameters for image variants, redirect between regional hosts or return format-specific files. Compare the sitemap URL with its final target. Look for short-lived signatures, session parameters and URLs that change after each deployment. A sitemap that points to retired hash filenames every week does not provide durable discovery.
The same logic applies to image URLs as to page URLs: the destination needs to be relevant, publicly available and return the expected file. Check whether the redirect reaches another image or an error page. Update the source with the current asset URL rather than adding another hop to an ever longer chain.
Match sitemap entries to the page
Read the sitemap and verify three things for each sample: is <loc> a fully qualified page URL, is <image:loc> an absolute URL for the actual image file, and does that image belong with the named page? The general XML sitemap glossary entry provides context for the file format and URLs. An image sitemap can be a separate file or use the image namespace in a regular sitemap.
The catalog example should match the page users actually open. If the product page sets https://shop.example/en/decaf-coffee as its canonical URL but the sitemap names the German page, document whether that localization is intentional. Use the right page URL for each language. The image file can be shared if the asset is language-neutral. Page selection and image delivery do different jobs.
Google's documentation allows up to 1,000 <image:image> entries per <url>. This is a technical ceiling, not a target for every catalog page. If a page has a large gallery, prioritize the images that explain the page and check whether the HTML also references them usefully. A sitemap should add discovery information, not dump a sprawling media library with no page relationship.
Keep the sitemap and rendered HTML consistent
Google can discover images from an <img src> attribute. The image SEO documentation says CSS background images are not indexed in the same way. For responsive images, Google recommends a src fallback alongside srcset. Check that important images are embedded meaningfully in the rendered page.
The sitemap can name an image that no longer appears in the HTML. This can happen after a migration, CMS change or asset cleanup. The opposite can happen too: the page displays an image that is missing from the sitemap. Both states are reasons to check the intended relationship. A Site Audit can inspect technical page signals and links. It cannot automatically decide whether the image matters to the page's users.
Use useful filenames and descriptive alt text where they fit the image and its function. Alt text does not replace the image file or guarantee a search result. It describes the content for users and systems. For decorative images, do not stuff the text with search terms. For a product photo, name the visible subject and mention an important variant only if the image shows it.
Example: Moving a catalog to a new CDN
Suppose a shop moves its images from img-old.shop.example to cdn.shop.example, while product pages stay on shop.example. Before switching over, the team exports the affected <loc> and <image:loc> pairs. It verifies the three domains in Search Console where the configuration requires it, and tests representative image URLs with GET.
For each sample, the team records whether the old URL still returns an image or redirects, whether the new URL is publicly fetchable, and whether the CDN's robots.txt permits the path. Then it checks the HTML and sitemap together. The intended result is a relevant page entry, a stable image path and no unnecessary redirect chain. A successful migration proves that the checked URLs work technically. Whether Google fetches all of them or shows them in Search needs later evidence.
After rollout, the team compares Search Console sitemap processing, available image crawl examples and CDN logs. If something fails, it separates possible causes: property verification, XML syntax, robots rules, missing files, access control or incorrect page association. A CDN asset issue should not trigger a blanket change to every product page. If the page itself is missing from Search, the guide to crawled but not indexed URLs gives a separate diagnostic path. The broader SEO audit guide can help place the technical finding in context.
Findings that are easy to confuse
The sitemap is submitted but image requests are missing. Possible causes include CDN access, robots rules, an unverified domain, a redirect or a missing file. Submission alone is not proof of a fetch.
The page is indexed but its product image is not. Check the asset host, file response, HTML embedding, robots.txt and the image-to-page relationship. The page's status does not answer the image's status.
The CDN returns 200 but the wrong content type. A URL may return an HTML error page or challenge document with HTTP 200. Check Content-Type and the actual response bytes. The status code is not enough.
The image appears in a browser but the sitemap reports a problem. The browser may use cookies, cache or a different srcset image. Compare the exact sitemap URL with the request named in the report.
FAQ
Does every CDN domain need Search Console verification?
For cross-domain image URLs in an image sitemap, Google says both domains need to be verified. Check the ownership coverage of the actual properties. Verification does not mean the image will be indexed or shown.
Can I provide images only through an image sitemap?
A sitemap can help discovery. Google still recommends ordinary HTML image elements and can find images through the src attribute. The sitemap and page HTML have related but different roles.
Does an image sitemap make an image index automatically?
No. It gives Google additional discovery information. Fetchability, robots rules, quality, page context and Google's processing remain separate factors. There is no guarantee that a submitted image will appear in Google Images.
What about signed or short-lived CDN URLs?
Check whether the URL still works on a later fetch without a session or expired signature. If the public image address changes frequently, have the sitemap generator use the current stable URL. A private, temporary preview address is not a reliable production path.
Sources and evidence limits
Google permits external hosts in image sitemap URLs and requires both domains to be verified. Its documentation also states the robots.txt condition and the maximum number of image entries per page. That does not guarantee that an image will be indexed or shown. Check practical CDN fetchability with the exact URL and use available Search Console or server data for follow-up.