How it works
A crawl is never truly finished if pages can change. Record fetch history, content hash, response validators, and last change time. Validators are values such as an ETag (a version tag the server assigned) that let the crawler ask whether anything changed. Schedule frequently changing or important pages sooner and stable pages later. Conditional requests such as If-None-Match or If-Modified-Since can save bandwidth when a server supports them; a 304 means no new representation was sent, not that the URL disappears from the schedule.
An adaptive rule might work like this, with example values. A page that changed on its last four daily visits moves to every 12 hours; one unchanged for five visits moves to every 2 days, up to a cap. Budget decides how far this goes. Recrawling 10 million pages daily takes about 116 fetches per second, nearly a third of a 386-per-second crawl, and that share is no longer finding new pages.
Retry transient failures with bounded exponential backoff and jitter, honoring Retry-After where relevant. Distinguish permanent errors, policy exclusions, and temporary failures. A spider trap is a site structure that generates URLs without end, whether by accident or on purpose. Cap retries, URL length, path depth, parameter variation, and per-site discovery when patterns suggest one. Human review or site-specific rules may be needed; a universal trap detector will also suppress legitimate pages.
A calendar generates a new URL for every future date. What protects the crawler?
Detect the expansion pattern, cap per-site and per-pattern discovery, and review a targeted filter. A generic depth limit alone may miss or overblock pages.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Freshness depends on change history and importance, not one global recrawl interval.
- Bound retries and suspicious URL expansion while preserving reasons for exclusion.