﻿# Tavily max_age_hours: handle live-fetch capacity without silently weakening freshness

Handle Tavily live-fetch capacity and cache-age requirements explicitly, distinguishing omitted stale pages, capacity refusal, and a consciously broadened cache fallback.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-tavily-live-fetch-capacity-fallback/
Language: en

## Define the required acquisition age

An incident assistant may need a current status page, while a reference assistant can accept cached background documentation. Set the acquisition requirement from the task before considering fallback. A response that is available quickly but too old for the incident does not satisfy the original request merely because it contains a plausible explanation.

## Understand the cache-age control

The [Search reference](https://docs.tavily.com/documentation/api-reference/endpoint/search) defines `max_age_hours` as the allowed age of Tavily's cached copy. It distinguishes live fetching, cache-only operation, and the default acquisition policy. Keep that meaning separate from publication age. A recently published page and a recently fetched copy answer different temporal questions.

## Account for reduced result coverage

[Search best practices](https://docs.tavily.com/documentation/best-practices/best-practices-search) explains that a page can be omitted when its cached copy is too old and live acquisition fails. Therefore fewer results than requested can reflect the freshness requirement rather than an absence of relevant URLs. Record acquisition policy alongside the returned set before interpreting coverage changes as ranking quality.

For an incident question, retain an unresolved state if the needed current status cannot be obtained. A cached troubleshooting guide may still help explain background concepts, but it cannot silently replace the missing current observation. Label the different evidence roles in the interface and final report.

## Separate capacity from rate limiting

The [rate-limits guide](https://docs.tavily.com/documentation/rate-limits) documents flex-capacity refusal with status `434`, distinct from `429` rate limiting. It describes retrying or omitting freshness controls to use cache. Treat the latter as a policy change, not a transparent retry of the same task. Keep status and available retry metadata rather than matching only a message string.

## Make fallback an explicit branch

Implement separate outcomes for fresh acquisition success, insufficient coverage, temporary capacity refusal, and permitted cached fallback. If the task requires current evidence, preserve failure or defer the answer under the application's existing retry policy. If cached material is allowed, state the relaxed acquisition scope and keep the original requirement in the record.

The existing guides to [task budgets](/journal/learn-codex-task-budgets/) and [stale document evidence](/journal/rag-document-updates-stale-chunk-citations/) help review that decision. Test a capacity refusal and a smaller successful result independently. The consumer should preserve why evidence is missing without inventing current observations or promising that every retry reaches the live page.
