Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant noindex meta tag? #860

Open
hilja opened this issue Sep 24, 2024 · 2 comments
Open

Remove redundant noindex meta tag? #860

hilja opened this issue Sep 24, 2024 · 2 comments

Comments

@hilja
Copy link

hilja commented Sep 24, 2024

<meta name="robots" content="noindex, nofollow" />

Correct me if I’m wrong but since the 'X-Robots-Tag', 'noindex, nofollow' header is set in server:

res.set('X-Robots-Tag', 'noindex, nofollow')

The above meta tag might not be needed.

Instead of a tag, you can return an X-Robots-Tag HTTP header with a value of either noindex or none in your response.

At least that’s how I’m reading the Google docs.

@kentcdodds
Copy link
Member

I do remember adding both of these, but I can't remember why I thought they were both necessary at the time. Maybe other search engines need them both? Or some use one and some use the other?

@hilja
Copy link
Author

hilja commented Sep 25, 2024

Interesting, you might be right. At least this blog post from ahrefs says some niche crawlers like Seznam only support the meta tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants