You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cli): the local link cache keeps cloud rate-limited and unverified answers for 7 days #764
When a signed-in CLI checks external links through the cloud dead-links service, checkExternalLinksOnStorage (apps/cli/src/audit/adapter.ts) writes every answer into the local link cache for cache_ttl_days (7 by default). The rules then read the results back from that cache. Two kinds of answer should not sit there for a week:
Rate-limited results lose their flag. The cache seed does not carry rateLimited (LinkCacheEntry deliberately has no such field, chore(release): v0.0.181 #1829: throttled results are never cached). A 503 with Retry-After that the service marked rate-limited is read back as a bare 503, so it is counted as a broken link, and it stays cached for 7 days. A 429 or 430 is still recognised from its status alone.
Update: the rate-limited half is fixed on main by #755 (7e991f5). The bulk path now lives in the engine's checkExternalLinks, which skips the cache for isRateLimited results. Still open: an answer the service could not verify (wafBlocked, null status, from squirrelscan/repo#2818 / #762) is cached for the full TTL.
Criterion 3 ("a WAF-blocked 403 from the CLI's own local checker is cached as it is today"): superseded by Local link checks: list bot-walled answers and timeouts as unverified, not broken; suggest signing in #800. On purpose, a local wall or timeout is no longer cached, so a later signed-in run asks the cloud link checker instead of reading a week-old wall (local-link-walls-800.test.ts > "walls and timeouts are not cached, so a signed-in run asks the cloud next time"). Suggested rewording: "A WAF-blocked or timed-out answer from the CLI's own local checker is not cached either (pub#800)." I have not edited the criteria. That call is for a maintainer.
Activity
nc9 commentedon Oct 14, 2026
Update: the rate-limited half is fixed on main by #755 (7e991f5). The bulk path now lives in the engine's
checkExternalLinks, which skips the cache forisRateLimitedresults. Still open: an answer the service could not verify (wafBlocked, null status, from squirrelscan/repo#2818 / #762) is cached for the full TTL.nc9 commentedon Oct 15, 2026
Status on current main (46000dd):
wafBlockedanswers from the bulk path or the local one.local-link-walls-800.test.tspins it, and so does test(cli): pin that the link cache keeps only settled dead-links answers #764 #832.local-link-walls-800.test.ts> "walls and timeouts are not cached, so a signed-in run asks the cloud next time"). Suggested rewording: "A WAF-blocked or timed-out answer from the CLI's own local checker is not cached either (pub#800)." I have not edited the criteria. That call is for a maintainer.test(cli): pin that the link cache keeps only settled dead-links answ…
test(cli): pin that the link cache keeps only settled dead-link answers