robots.txt waits on a backend fetch — a slow or unreachable API delays or breaks robots.txt for crawlers

Aperta
#715 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dezzy-music ci sta già lavorando.

Dal 13/10/2026.

  • #730 di @dezzy-music — aperta
  • #753 di @yggdrasilworld — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start in app/robots.ts, where the handler awaits sitemapUrls() and so getSitemapChunks() and buildSitemapEntries(), which hit the backend on a cold cache. Two open pull requests (#730, #753) already target this, so read them first to see what is in flight. Done means robots.txt responds without waiting on any backend fetch, pointing at the stable /sitemap.xml URL.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug performance

Problem

app/robots.ts is async and awaits sitemapUrls() → getSitemapChunks() → buildSitemapEntries(), which calls the backend (fetchBounties, fetchIndexableReputationHandles, up to 20 s timeout each) whenever the 1-hour module cache is cold. Crawlers fetch robots.txt first and treat timeouts or 5xx as a reason to back off crawling the whole site.

Suggested fix

Serve a static robots.txt that points at a stable sitemap index URL (/sitemap.xml, already redirected) and let the sitemap route do the dynamic work.

Related: #247, #248

Lingua principale
TypeScript
Stelle
1
Fork
94
Merge medio
1h 2m
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MergeFi/frontend

Tutte le issue di MergeFi/frontend

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.