Skip to content
Dashboard

Runtime logs now show cache reasons

Software Engineer Intern
A STALE request with a Time-based revalidation reason in runtime logs.A STALE request with a Time-based revalidation reason in runtime logs.
A STALE request with a Time-based revalidation reason in runtime logs.

Copy link to headingFrom the CLI

# Inspect the cache reason for a request with vercel logs:
vercel logs \
--request-id <request-id> \
--expand --json \
--project <project> \
--scope <team>
# Quantify how often each reason occurs across your traffic with vercel metrics:
vercel metrics vercel.request.count \
--group-by cache_reason \
--since <time> \
--project <project> \
--scope <team>
# Debug caching at scale using the cdn-caching skill in the Vercel plugin:
npx skills add https://github.com/vercel/vercel-plugin --skill cdn-caching

Ready to deploy?