Skip to content

Conversation

tawseefnabi
Copy link
Contributor

@tawseefnabi tawseefnabi commented Aug 7, 2025

Add a comprehensive example showing how to use the Cache Interceptor with Fetch, including configuration options and usage patterns.

Refs: #4283

This relates to issue #4283

Status

Add a comprehensive example showing how to use the Cache Interceptor with Fetch,
including configuration options and usage patterns.

Refs: nodejs#4283
README.md Outdated
const response = await fetch('https://api.example.com/data', {
// Cache control can be set per-request
headers: {
'Cache-Control': 'max-age=60' // Cache for 60 seconds
Copy link
Member

Choose a reason for hiding this comment

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

This can mislead a bit the cache behavior, maybe better to omit it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@tawseefnabi tawseefnabi requested a review from metcoder95 August 8, 2025 09:37
@tawseefnabi
Copy link
Contributor Author

@Ethan-Arrowood can u review this please

Copy link
Collaborator

@Ethan-Arrowood Ethan-Arrowood left a comment

Choose a reason for hiding this comment

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

Unsure if the Quick Start is the right spot for this, but I'm not directly opposed either. LGTM thank you for taking this on!

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