Skip to content

docs(dispatcher): add cache interceptor fetch example#4870

Merged
mcollina merged 1 commit intonodejs:mainfrom
nthbotast:docs/cache-interceptor-fetch-example-20260306-075600
Mar 8, 2026
Merged

docs(dispatcher): add cache interceptor fetch example#4870
mcollina merged 1 commit intonodejs:mainfrom
nthbotast:docs/cache-interceptor-fetch-example-20260306-075600

Conversation

@nthbotast
Copy link
Copy Markdown

@nthbotast nthbotast commented Mar 6, 2026

What

  • add a dedicated cache interceptor example for fetch in docs/docs/api/Dispatcher.md
  • show how to compose a cached Agent, set it globally, and illustrate first/second request behavior

Why

Validation

  • git diff --check
  • npx --yes markdownlint-cli2 docs/docs/api/Dispatcher.md (fails due to many pre-existing file-wide lint issues unrelated to this change)

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.13%. Comparing base (bfeacd0) to head (8e0eb28).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4870      +/-   ##
==========================================
- Coverage   93.14%   93.13%   -0.01%     
==========================================
  Files         109      109              
  Lines       34254    34254              
==========================================
- Hits        31905    31904       -1     
- Misses       2349     2350       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 0a68739 into nodejs:main Mar 8, 2026
36 of 37 checks passed
@github-actions github-actions bot mentioned this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants