Skip to content

Conversation

icyJoseph
Copy link
Collaborator

No description provided.

@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. Turbopack Related to Turbopack with Next.js. labels Oct 22, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 22, 2025

CodSpeed Performance Report

Merging #85224 will not alter performance

Comparing docs/re-order-cacheLife-info (dc5528d) with canary (5ce476a)

Summary

✅ 17 untouched
⏩ 3 skipped1

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Cache profiles control caching behavior through three timing properties:

However, we recommend always adding a cache profile when using the `use cache` directive to explicitly define caching behavior.
- **`stale`**: How long the client can use cached data without checking the server
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets link to the sections below from each of these

1. Serves the cached version immediately (if available)
2. Regenerates content in the background
3. Updates the cache with fresh content
- Similar to Incremental Static Regeneration (ISR)
Copy link
Contributor

Choose a reason for hiding this comment

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

Link to ISR docs


**The client enforces a minimum stale time of 30 seconds**: This ensures that prefetched data remains usable long enough for users to click on links after they've been prefetched. Without this minimum, very short stale times would cause prefetched data to expire before it could be used, making prefetching ineffective.
- After this period with no traffic, the next request regenerates content synchronously
- Must be longer than `revalidate` when both are specified
Copy link
Contributor

Choose a reason for hiding this comment

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

Do i get an error if its not? What happens if i do this wrong?

Copy link
Contributor

@molebox molebox left a comment

Choose a reason for hiding this comment

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

Left some small nits, overall this is well explained!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. Turbopack Related to Turbopack with Next.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants