-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix: add noindex to server island headers #12827
Conversation
🦋 Changeset detectedLatest commit: 7667cc2 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #12827 will not alter performanceComparing Summary
|
Can you try setting it inside of this function instead:
This is the handler for server islands, would be cleaner not to put SI specific code in render-context if we can avoid it. |
Accidentally updated branch, didn't know what this button does |
I think we don't need this PR. see review conversation |
@sinskiy I updated the PR by fixing the tests (you didn't update them). Now it passes |
@ematipico Thanks! But, as I said, |
@sinskiy I wonder if you were seeing that because your tests were cached or something, making it seem like the header was already there. You could try submitting a PR that removes your change and see if it now fails. If it doesn't that would mean the header is already there. |
Changes
Sets
X-Robots-Tag: noindex
to Server Island headersFixes #12806
Testing
Added tests that check
X-Robots-Tag: noindex
of Server Island in both production and development environmentsDocs
No changes needed? This just fixes a bug