Skip to content

Commit

Permalink
fix: Next.js missed a file when renaming swrDelta to expireTime (#…
Browse files Browse the repository at this point in the history
…71190)

# 🧰Fixed a file name

Hello. In #71159 Next.js changed `swrDelta` to `expireTime`. 

However, the `swrDelta.mdx` file name wasn't updated. So I renamed it to
`expireTime.mdx`.

Additionally, I fixed a typo. `stale-while-revalidate` is in an inline
code block in the paragraph below, but not in the one above. (Please see
this
[link](https://nextjs.org/docs/canary/app/api-reference/next-config-js/swrDelta).)


![image](https://github.com/user-attachments/assets/fdbd4db1-43f3-4c58-a842-55c51f282c5d)
  • Loading branch information
lumirlumir authored Oct 12, 2024
1 parent a987e2b commit e8af5c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Set a custom stale-while-revalidate period for ISR enabled pages.

{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}

You can specify a custom stale-while-revalidate period for CDNs to consume in the `Cache-Control` header for ISR enabled pages.
You can specify a custom `stale-while-revalidate` period for CDNs to consume in the `Cache-Control` header for ISR enabled pages.

Open `next.config.js` and add the `expireTime` config:

Expand Down

0 comments on commit e8af5c9

Please sign in to comment.