I have list of product links on one of our website's page. For some reason when I view the google's cached version of this page, google strips out all the product links. Links in the header and footer remains intact though.

Primary concern is that if links are being stripped out from cached version then google search can't see and thereby index them.

Here's the product markup we are using:

<div class="product">
    <a href="/product-url#color-name" data-lightbox><img class="img" src="https://some-product-image.jpg" />
    <div class="content">
        <span class="line1">Product name</span> <span class="separator">|</span>
        <span class="price">Price</span>
        <div class="colors">
            <span class="color color-selected" style="background-color: #00008B" data-product-ImageLink="https://some-product-image.jpg" data-link="/product-url#color-name">&nbsp;</span>

I can't figure out why the <a> links are being stripped out?


1 Answer 1


The text only version of their cache is exactly that: no images and only text. The only thing that you have in that link is an image with no text. It is removed in the process of creating a text only view of the page for the Google cache. The full HTML version of the cache has working links.

I wouldn't expect this to have any effect on Google's ability to identify, follow, fetch, index, and rank the links to your product pages. However, it certainly makes the text only version of the cached page less than useful.

One easy workaround would be to add a link around the product name:

<span class="line1">Product name</span>


<span class="line1"><a href="/product-url#color-name">Product name</a></span>

That would make the product name clickable for users, which I think would be a good thing for usability. I would expect product names to be clickable in a listing of products. You could even use CSS to style it such than it doesn't look different than it does now.

  • and suddenly it all makes sense :) its one of those things when someone points out you and you think.. duh..why didn't I thought of it! <img> tag got stripped which in turn led to an empty <a> link which also got stripped..I should have put an <a> link around the name from begining
    – Jags
    Jan 22, 2015 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.