Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My site www.books-for-children.com (developed in Wordpress) has been live for about two months and still has not been cached by Google, which seems highly unusual. Any ideas why?

Thank you.

share|improve this question
1  
I think this question is off-topic for this site. But since I know the answer (which is very simple), I am posting my answer. Please read the FAQ before posting a question. –  its_me Aug 17 '12 at 5:41
add comment

closed as off topic by Brian Fegter, Wyck, Rarst Aug 17 '12 at 8:33

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

I looked at the source code of the site and found this:

<meta name="robots" content="noodp,noydir,noarchive,nosnippet"/>

Apparently noarchive tells Google to not cache the page. Check out Google Webmaster Tools documentation/guidelines for "Meta tags" for more info on what each value does.

PS: If you are unaware, nosnippet should also be removed as it "prevents a snippet from being shown in the search results".

So, it's best to remove the meta tag completely, as it's not necessary, or modify it to this:

<meta name="robots" content="noodp,noydir" />
share|improve this answer
    
Thank you!! Oddly, this was a setting in Yoast SEO, which you would think would do the opposite. Not sure if it was a default setting or one that a developer messed up. Anyway, thank you. –  Dan Aug 17 '12 at 8:06
    
Why so quick to close a topic that is all about a Wordpress setting, specifically a plug-in setting? I don't get it, especially when the answer was so correct, so helpful, and information that was not easily found elsewhere. Under those circumstances where your site is so effective and beneficial, it's hard to understand closing the question. –  Dan Aug 18 '12 at 2:34
    
@Dan This site is for WordPress-specific issues. Although your problem was caused by a plugin, your question "why aren't my pages being cached by Google?" in a way could happen with any web page, and is thus not wordpress-specific. Besides there was no mention of a plugin in your question, or my answer. :P –  its_me Aug 18 '12 at 2:43
add comment

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