A Practical Rendering Strategy for Content-Heavy CMS Sites

Technical Director
  • Twitter
  • LinkedIn

A content author publishes a page, but the public site still shows the previous version. The search crawler indexes the old copy. Meanwhile, opening a navigation menu triggers requests for pages the visitor has not chosen to visit.

These problems can appear on a website that otherwise feels fast. They involve several distinct parts of the delivery process, and it is easy to misdiagnose one by changing settings that belong to another.

Across recent SitecoreAI projects, I have spent a considerable amount of time working through how these behaviors interact. My starting point for a content-heavy website is to reuse published content where it is appropriate, define how that content becomes fresh, and make deliberate choices about background requests and navigation.

This article works through the main concepts separately:

  • Rendering determines when the application generates the output a visitor sees.
  • Caching and revalidation determine where that output and its source data are reused, and when they are refreshed.
  • Link prefetching loads information for a possible next page before the visitor clicks.
  • Client-side navigation determines how the browser changes pages after a click. CMS field components can introduce their own navigation behavior too.
  • Preview and editing deliver unpublished content to authors, with different requirements from the public site.
  • Search indexing creates another copy of the content that must stay aligned with the published website.

These are connected decisions, but choosing one does not settle the others. An ISR page can use either client-side or full document navigation, for example, and disabling prefetching does not decide how that page is rendered. The sections below introduce each mechanism before discussing the choices I have made around it.

The examples here focus on Next.js App Router and Sitecore's Content SDK. The same design questions apply to Next.js sites backed by Storyblok or another headless CMS, although each integration needs its own publishing and preview implementation.

Rendering strategies and when page output is generated

Rendering combines content and application components into the output the browser displays. That work can happen ahead of a visit, when a request arrives, or when previously generated output needs refreshing. The timing affects the work performed for each visitor and how new content reaches the page.

Static Site Generation, Incremental Static Regeneration and Server-Side Rendering are three approaches to that timing:

ApproachHow it worksWhere I would consider it
SSG — Static Site GenerationProduces page output at build time. A build-only implementation needs another build to incorporate subsequent content changes.Stable pages where the publishing frequency and build duration make that acceptable.
ISR — Incremental Static RegenerationServes cached, prerendered output and allows it to be regenerated after deployment.Public editorial pages that many visitors can share, with a defined freshness policy.
SSR — Server-Side RenderingRenders at request time. Its underlying data can still be cached independently.Experiences that require request-specific information or cannot reuse the same output across visitors.

For a typical public content page, I would start by evaluating ISR. Repeated visits can reuse generated output, and authors can publish without making a complete site build part of every content change. Next.js ISR guidance

That does not mean every route should use the same strategy. Account experiences, live calculations or request-dependent personalization need separate consideration. A dynamic widget can also sit within an otherwise cacheable experience; one interactive component does not automatically determine the rendering strategy for the entire site.

There is another distinction worth making early: a React Server Component does not mean a page is rendered afresh for every visitor. Server Components describe where component code executes. They can participate in prerendered or dynamically rendered output. Keep browser interactivity in the components that need it without assuming that every component must become client code. Server and Client Components

For larger sites, build duration matters too. Consider which routes should be generated during the build and how newly published routes will be generated afterward. Include a brand-new page in your release checks: updating an existing page and making a previously unknown URL available are different cases. Build-time route generation

Caching layers and where content is reused

A cache stores a result so it can be reused without repeating all the work that produced it. On a CMS website, that result might be an API response, rendered page output or route information already loaded in the browser. Caching can reduce waiting time and repeated processing, but each stored copy needs a clear lifetime or refresh mechanism.

A modern delivery path can contain several caches, owned by different systems. Before deciding how to refresh content, establish which copies exist. When debugging stale content, I work through these layers:

LayerWhat to establish
CMS delivery APIDoes the published endpoint return the expected content version?
Application data or component cacheAre the page, dictionary and shared-data reads using current values?
Generated page outputHas the HTML or cached route output been invalidated and regenerated?
Hosting or CDN cacheIs the public request reaching the expected deployment and output?
Browser navigation stateIs the visitor seeing a new document or previously loaded route data?

Rendering a route dynamically does not establish that every data source underneath it is fresh. Similarly, bypassing a CDN entry does not clear an application's cached CMS response. Diagnose the layer serving the old value before changing the whole site's rendering strategy. Next.js caching without Cache Components

Implementation details depend on the application's Next.js version and caching model. Current Sitecore Content SDK documentation distinguishes the standard nextjs-app-router starter from nextjs-app-router-cache-components. The latter includes tagged cache helpers and a revalidation route. Its revalidation handler relies on those matching tags already being attached to cached content. Adding a webhook to an application without the corresponding cache wiring does not establish that its pages will refresh. Sitecore App Router revalidation guidance

I would establish that baseline before copying a revalidate setting or cache helper from another project. Site, language, route and content mode also need to remain distinct wherever application code constructs cache keys.

Revalidation and when cached content becomes fresh

Revalidation is the process that allows cached content to be checked or regenerated as it becomes stale. In a CMS application, publishing changes the content available from the CMS, but the frontend may still have a reusable copy of the previous page or its data. Revalidation connects the publishing process to those cached copies.

There are two common triggers: the passage of time, and an explicit event such as publication. Choosing between them starts with how much delay the business can accept before visitors see an update.

A time-based revalidation setting is useful when some delay is acceptable. However, a 60-second interval is not a timer that regenerates every page once a minute. With conventional time-based ISR, a request after the interval can receive stale output while regeneration happens in the background. Later requests receive the regenerated version once it is ready.

That behavior is often appropriate for public editorial content. It becomes a problem when the team interprets the interval as a guaranteed publication deadline.

When publication needs to drive freshness, I prefer an explicit flow:

  1. Publish the content in the CMS.
  2. Confirm the published change is available through the delivery API the application actually reads.
  3. Invalidate the relevant cached data and rendered output.
  4. Request the affected page and verify the updated content.
  5. Trigger downstream work, such as search crawling, once the HTML is ready.

The ordering matters. Invalidating the application before the delivery API exposes the change can cause the application to cache the previous content again.

An on-demand revalidation endpoint also needs more than a successful webhook response. The invalidation must reach the entries used by the page. In current Next.js guidance, revalidateTag(tag, 'max') uses stale-while-revalidate behavior; an immediate-expiry policy such as { expire: 0 } makes the next read wait for fresh data. Choose the behavior that matches the publication requirement. A webhook does not itself guarantee that every affected page has already been regenerated. Tag revalidation behavior

Scope invalidation around dependencies. A page body, shared navigation, dictionary and listing page have different consumers. Changing a shared item may affect many routes. Renaming or unpublishing a page also needs handling for its old URL, listings and sitemap, not just the newly requested page.

Link prefetching and loading routes before a click

Link prefetching is a performance feature that starts retrieving information for another route before the visitor chooses to navigate there. Without it, the browser may need to wait until the click before requesting the route's data and code. With prefetching, some or all of that work can already be complete by the time the visitor follows the link.

This explains Next.js's default: it aims to make transitions between pages feel immediate. Prefetching complements client-side navigation by making route information available in advance, reducing the work the visitor has to wait for after clicking. It is an important part of the framework's approach to responsive navigation, alongside streaming and reuse of shared layouts. Next.js navigation model

For a standard Next.js Link, automatic prefetching normally begins as the link enters the viewport in production. Next.js schedules that work, and the amount fetched depends on the route and configuration; a prefetch does not always retrieve an entire page. How Next.js prefetching works

The benefit is clear when visitors move through an application with predictable next steps. A content-heavy site can have a different pattern: a menu, listing or rich-text field may expose dozens of destinations, while the visitor reads the current page and follows only one link. That makes the balance between earlier loading and unused requests worth examining.

For this kind of website, my starting preference is no automatic route prefetching. It gives us an explicit policy for when linked routes are requested, with room to add targeted prefetching where a particular journey benefits from it.

In Next.js App Router, a framework link can retain client-side navigation while disabling its prefetch behavior. Next.js Link reference

import Link from 'next/link';

<Link href="/services" prefetch={false}>
  Our services
</Link>

A prefetch request is not necessarily a CMS query or a full server render: it may be served from a cache. I would measure the browser requests, cache hits, function activity and CMS traffic separately before claiming a particular cost saving. Disabling prefetching can also increase the wait after a click. The decision should reflect the site's actual journeys and response times.

Client-side navigation and what happens after a click

Client-side navigation lets the running application update the current page when a visitor follows an internal link. Next.js can replace the changing parts of the interface while retaining shared layouts and application state. This is useful for experiences where persistent controls, ongoing interactions or fast transitions matter.

Full document navigation follows the browser's normal page-loading model: the browser requests a new document for the destination. That gives the two approaches different behavior around page initialization, shared state and loading feedback.

Disabling prefetching and disabling client-side navigation are separate choices. The Next.js Link above, with prefetch={false}, still performs client navigation. A normal anchor requests a new document when followed:

<a href="/services">Our services</a>

On one content-heavy implementation, we chose full document navigation for ordinary page links and retained client navigation for a specific search interaction. That was a deliberate product and engineering choice. Full document navigation reloads more of the page and resets application state; client navigation can preserve shared layouts and interactions. Either choice still needs a sound server-side caching policy.

Sitecore field components and CMS-managed links

A CMS-managed link may come from a structured link field, a component's content or an HTML anchor inside rich text. SDK field components translate that authored content into the application's rendered interface and preserve the metadata needed for inline editing. As part of that translation, they can also decide how internal links behave.

This introduces another place where navigation settings can take effect. A policy applied only to direct next/link usages will not necessarily cover links rendered by the CMS SDK.

Sitecore's Content SDK Link can use Next.js navigation for internal links. Its RichText component has separate controls for prefetching embedded links and intercepting their clicks. In the implementation above, we put the policy in shared wrappers around both components, preserving field rendering and inline-editing support. Sitecore field component reference

For full document navigation with prefetching disabled, the relevant settings were:

<SdkLink
  {...props}
  internalLinkMatcher={/^(?!)$/}
  prefetch={false}
/>

<SdkRichText
  {...props}
  prefetchLinks={false}
  internalLinksSelector="a:not(a)"
/>

Here, SdkLink and SdkRichText refer to the SDK components inside separate wrappers. The regex and selector intentionally match nothing, keeping those internal links on the ordinary-anchor path. Fixed policy props follow the caller's props so individual usages cannot override them.

These are the settings for that specific navigation policy, not complete wrapper implementations. Keep the Link wrapper's regex inside an appropriate client boundary, and preserve normal attributes, children and editing metadata. Projects retaining client navigation only need to disable prefetching, leaving the SDK's internal-link matching in place.

We also checked hardcoded anchors, programmatic navigation and rich-text links, then added lint rules to direct developers through the wrappers. Browser checks confirmed document navigation and no recorded route prefetches during the journeys tested. Editing, analytics and personalization should be included in each project's integration checks when changing navigation behavior.

Preview and editing for unpublished content

Preview lets authors see unpublished changes in the website before making them public. Visual editing builds on that experience by letting them work with content in the page itself. Both typically use the same frontend components as the public website, but they need access to a different content state.

The public site benefits from reusing published output, while authors need a current view of their work in progress. That makes preview and editing distinct delivery modes, with their own data-source selection and cache behavior.

Next.js Draft Mode provides the preview switch, but the CMS integration still has to select the appropriate preview client or endpoint. In a Sitecore application, detecting Draft Mode does not by itself select a different Experience Edge Context ID. Next.js Draft Mode

That distinction applies beyond the main page body. Metadata, dictionaries, shared components and error content need the correct content mode too. Sitecore's current starter guidance keeps preview and editing reads dynamic and uncached. Custom caches and services need the same separation. Sitecore preview and cache behavior

I have used a dedicated editing deployment to make the boundary easier to operate. A combined deployment can also work, provided the application selects the correct content source for each request and keeps preview data out of shared public caches. The deployment choice does not remove the need to define those behaviors explicitly.

Search indexing and the content a crawler receives

Search indexing creates a searchable representation of content outside the page-rendering process. For crawler-based website search, the crawler requests public pages, extracts their content, and writes it to an index that later serves search results. Updating the CMS, refreshing the public page and updating that index are separate operations.

A crawler indexes the response it receives. It cannot tell that an author published a newer version if the public page still serves older HTML. A search result can therefore lag behind either because the page is stale or because the index has not yet caught up.

This is why I would verify the changed page before starting a crawl. Request headers such as Cache-Control: no-cache can participate in cache revalidation, but they are not an instruction to clear every CMS, application and hosting cache in the chain. Inspect the actual response body for the published change. HTTP cache revalidation

For Sitecore Search, a preview Context ID and the search source configuration are also separate concerns. Switching the page's content client should not be assumed to switch the search index. Decide whether authors should see published search results, a separate preview index or an alternative editing experience.

Validation across the complete delivery path

Each mechanism can behave as configured while the overall publishing or browsing experience still fails. Validation needs to follow a content change from the CMS through the delivery API, caches, browser and search index, as well as exercise the navigation choices separately.

Use a production build for those checks so features such as automatic prefetching are active. Before calling the strategy complete, I would check the journeys that expose its boundaries:

  • Load a page cold, then warm, and inspect both response time and upstream activity.
  • Publish a page update and verify the delivery response, invalidation and resulting HTML.
  • Publish a new route, rename a route, and unpublish an existing one.
  • Update shared content and verify its dependent pages, listings and dictionaries.
  • Scroll, hover and follow menu, card and rich-text links while inspecting background requests.
  • Exercise preview, editing, analytics, personalization, Back/Forward navigation and any deliberate client-navigation exceptions.
  • Start a search crawl only after the changed HTML is available and verify the indexed result.

For public editorial pages, I would begin with cacheable output and a defined revalidation policy. I would reserve request-time work for the parts of the experience that need it, keep preview separate, and enable prefetching only where it provides a useful benefit. The final check is practical: authors can publish predictably, visitors receive the intended content, and the team can explain which requests caused the work.