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

Change the default header of X-Robots-Tag to "noindex, nofollow" #299

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Change the default header of X-Robots-Tag to "noindex, nofollow" #299

merged 1 commit into from
Mar 21, 2023

Conversation

stavros-k
Copy link
Contributor

@stavros-k stavros-k commented Mar 21, 2023

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

NC 26 shows the bellow warning:

image

Benefits of this PR and context:

Partially fixes #298

Follow upstream nextcloud suggestions

How Has This Been Tested?

Manually made the changes on my instance, restarted it and warning was gone.
Also checked headers in the dev tools in browser

Source / References:

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

@thespad
Copy link
Member

thespad commented Mar 21, 2023

The X-Robots-Tag header is set to none, this is equivalent to noindex, nofollow (source), so I have no idea why Nextcloud have decided to pointlessly change their detection for this.

@aptalca
Copy link
Member

aptalca commented Mar 21, 2023

Pretty sure when it comes to header detection, Nextcloud looks for an exact match of whatever parameter they like, and if it doesn't match exactly, it complains. It's pretty poor implementation.

@thespad
Copy link
Member

thespad commented Mar 21, 2023

Yeah, but in previous versions they were happy with none, because that's what we've used for ages, which suggests they've changed what they're looking for.

@stavros-k
Copy link
Contributor Author

nextcloud/server#36689

While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines.

@thespad thespad merged commit a050585 into linuxserver:master Mar 21, 2023
@stavros-k stavros-k deleted the patch-1 branch March 21, 2023 20:47
nemchik added a commit that referenced this pull request Mar 21, 2023
Re: #299
Missed date change
@nemchik nemchik mentioned this pull request Mar 21, 2023
1 task
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

Successfully merging this pull request may close these issues.

Header Error + Php Module After Update to v26.0
4 participants