Skip to content

docs(examples): add cache interceptor example with fetch#4864

Merged
metcoder95 merged 1 commit intonodejs:mainfrom
nthbotast:docs/cache-interceptor-fetch-example-4283
Mar 5, 2026
Merged

docs(examples): add cache interceptor example with fetch#4864
metcoder95 merged 1 commit intonodejs:mainfrom
nthbotast:docs/cache-interceptor-fetch-example-4283

Conversation

@nthbotast
Copy link
Contributor

What

  • add a dedicated Cache interceptor with fetch example in docs/examples/README.md
  • show a minimal local server returning Cache-Control: public, max-age=60
  • demonstrate that two consecutive fetch() calls return the same cached payload

Why

Issue #4283 asks for a clearer fetch-based example for the cache interceptor.

Validation

  • git diff --check

Signed-off-by: Nathanael BOT <nathanaelbot@minidenathanael.home>
@metcoder95 metcoder95 merged commit 4071205 into nodejs:main Mar 5, 2026
@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.

2 participants