Repository navigation
fix(site): keep crawlers off track, album and listen pages - #261
Merged
Merged
Conversation
ClaudeBot and GPTBot were walking every track and album link (times four periods), multiplying Worker invocations about eightfold and running a fresh HappyView aggregation for each page. robots.txt is a static asset, so it costs no invocation itself. Also stop a listen page failing when Slingshot answers one collection's missing record with a 500 while the other collection has the play.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Worker invocations jumped about 8x after the music pages shipped. In a 75-second sample of live traffic, 87% of requests came from ClaudeBot (75%) and GPTBot (13%). They were following every track and album link, each in four
?period=variants, and each of those pages runs its own HappyView aggregation.public/robots.txt: blocks/track/,/album/,/listen/,/oauth/,/_serverFn/and any URL with a query string. Artists, profiles and the home page stay crawlable. The file is served as a static asset, so requests for it don't run the Worker.getListenlooks up both play collections, one failed lookup made the page 500 even when the other collection had the play. About 5% of sampled requests hit this.Tested locally against production HappyView: two listen pages that returned 500 in production now load, and robots.txt is served.