Skip to content

Commit

Permalink
Add ISR link (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
bookernath authored Oct 18, 2024
1 parent 671bd04 commit 90a91fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In addition to Next.js's built-in caching, Catalyst offers further optimizations

### Guest vs. Logged-in Customer Caching

Catalyst includes paths containing a `/static/page.tsx` file with `export const dynamic = 'force-static';` for generating static pages at build time for guest shoppers. These static pages are periodically rebuilt using Incremental Static Regeneration (ISR), without requiring a re-build of the entire storefront. The revalidation period is controlled by the same `DEFAULT_REVALIDATE_TARGET` environment variable as the Data Cache.
Catalyst includes paths containing a `/static/page.tsx` file with `export const dynamic = 'force-static';` for generating static pages at build time for guest shoppers. These static pages are periodically rebuilt using [Incremental Static Regeneration (ISR)](https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration), without requiring a re-build of the entire storefront. The revalidation period is controlled by the same `DEFAULT_REVALIDATE_TARGET` environment variable as the Data Cache.

- **Guest shoppers**: Requests are rewritten to statically built pages for better performance. Pages are periodically rebuilt using ISR.
- **Logged-in customers**: Dynamic rendering is used, and requests are rewritten to the regular path (`/page.tsx`).
Expand Down

0 comments on commit 90a91fa

Please sign in to comment.