Discussion
  • Indexing
  • Technical SEO

Moving images to or from a CDN hostname: have you seen image indexing or Lens visibility change afterwards, and how long did it take?

Published 1 reply

Discussion starter: a technical SEO question, posted with an answer from Niraj Raut to open the thread. If you have dealt with this on a site, reply with what you saw, especially where it differs.

Disclosure: Niraj Raut, who posted this answer, runs the SEO consultancy linked at the end of it.

1 reply

  • admin
    Admin
    Original poster

    Moving images to or from a CDN hostname changes their URLs, and Google tracks images by URL, so image search and Lens visibility often dip and then recover as Google discovers and indexes the new URLs. Images are generally recrawled less often than pages, so this usually takes longer than a page migration: weeks for frequently crawled pages’ images, and longer for the long tail. Google has advised keeping image URLs stable where possible for this reason. If you must move them, redirect the old image URLs to the new ones, update every reference at once, make sure the new hostname is crawlable, and keep file names and alt text unchanged, so the only thing Google has to relearn is the location.

    Why image moves are slower than page moves

    When a page moves, Google usually finds the redirect quickly because it recrawls pages regularly. Images are fetched less often, and an image’s search signals, such as the page it appears on, its alt text and the surrounding content, are associated with the image URL. When the URL changes, Google needs to crawl the page, see the new image URL, fetch the new image and connect the signals. Redirects from the old image URLs help Google connect the old and new versions when it does fetch them.

    A checklist for the move

    • Redirect old image URLs with 301s to the new CDN URLs, one to one.
    • Update every reference: page HTML, srcset, structured data, Open Graph tags and image sitemaps.
    • Keep file names and paths as similar as possible; descriptive names still help.
    • Check robots.txt on the CDN hostname. Many CDN hostnames have their own robots.txt, and a default disallow blocks image crawling entirely.
    • Check hotlink protection and bot rules on the CDN, which sometimes block Googlebot’s image requests.
    • Check headers: correct content types, no X-Robots-Tag: noindex on images you want indexed.
    • Avoid changing URLs again. Cache-busting parameters that change on every deployment create new image URLs each time; use versioned file names only when the image actually changes.

    How to measure the effect

    Search Console reports image performance under the Image search type, and since September 2026 a multimodal filter in the Performance reports covers Google Lens, Circle to Search, image uploads to Search and Chrome’s “Search this image”. Performance is attributed to the pages where images appear, so the CDN hostname does not need its own property for this data. Compare image and multimodal impressions and clicks for affected pages before and after the move, against the same period in the previous year. In server or CDN logs, track Googlebot-Image requests to the old and new image URLs: requests shifting from redirects to the new URLs show how far through the transition Google is.

    Stage What you typically see
    First days Googlebot-Image hits old URLs and follows redirects; image impressions may dip
    First weeks Images on frequently crawled pages indexed at new URLs; impressions recovering for those pages
    Following months Long-tail images catch up; redirect hits taper off

    Hypothetical example:

    A furniture retailer moves product images from its own domain to a CDN hostname and changes file names to hashed strings at the same time, without redirects. Image search and Lens impressions fall sharply and take months to recover partially, because Google treats every image as new and the descriptive file names are gone. For its second brand, it moves images to the same CDN but keeps file names, adds one-to-one redirects, confirms the CDN’s robots.txt allows crawling and updates image sitemaps. Image impressions dip for a few weeks and return to their previous level within about two months.

    Watch for this:

    Image CDNs that transform images on the fly, resizing or converting formats through URL parameters, can produce many URLs for one image. Pick a consistent URL for the version referenced in the HTML and structured data, so Google sees one canonical image rather than dozens of variants.

    Lens and visual search add one more consideration

    Visual search tools match images by what they show, not only by their URLs, so a product photographed well and used consistently across a site can be recognised even after a move. But for Google to show your page as the source, it still needs to have indexed the image at its new URL on your page. Sites with strong Lens visibility for original product photography should be especially careful to keep the same image files, avoid recompressing them heavily in the move, and keep them on the same pages. Changing the images themselves, their URLs and their pages all at once gives Google the most to relearn.

    Is the move worth it?

    For speed, an image CDN is often worth the temporary dip, especially on image-heavy sites where faster loading improves user experience and Largest Contentful Paint. For sites that depend heavily on image search or Lens traffic, such as fashion, furniture, recipes and art, plan the move carefully, do it once, and avoid combining it with other changes. If you are moving images back from a CDN to your main domain, the same rules apply in reverse.

    Change image URLs as rarely as possible. When you have to, redirect one to one, update all references together, keep file names and alt text, check the CDN’s robots.txt and bot rules, and expect a recovery measured in weeks to months rather than days.

    Need help with this on your own site?

    Niraj Raut works with businesses in Nepal, Australia, the UK, Europe and the US on technical SEO, ecommerce SEO, local SEO and AI search.

    See SEO services

Add a reply

Replies are open to approved members. Log in or apply to join.