Skip to content

fix(site): keep crawlers off track, album and listen pages - #261

Merged
mmattbtw merged 1 commit into
mainfrom
fix/site-crawlers
Dec 5, 2026
Merged

mmattbtw merged 1 commit into
mainfrom
fix/site-crawlers

Conversation

@mmattbtw

@mmattbtw mmattbtw commented Dec 5, 2026

Copy link
Copy Markdown
Member

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.
  • Listen pages: for missing records on some PDSes, Slingshot returns a 500 instead of a 404. Because getListen looks 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.

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.
@mmattbtw
mmattbtw merged commit 7f1c6eb into main Dec 5, 2026
2 checks passed
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.

1 participant