DELTAWEB
All posts
Performance

Static Site Generation for a Fast Global Product Catalog

SSG vs ISR vs SSR for export catalogs: build times in multilingual catalogs, on-demand revalidation, forms and search as islands, and CDN caching of HTML.

Static Site Generation for a Fast Global Product Catalog
11 minReading time
Arif KuruAuthor

Static site generation (SSG) means turning web pages into finished HTML files at build time, before any visitor asks for them, and serving those files as they are from a server or a CDN. The page is not rebuilt from a database on every request; what reaches the buyer's browser is a file that already exists. For exporters whose product catalog does not change often and whose buyers are spread across several continents, this approach brings a clear simplicity in speed, security and cost. We covered the wider framework in export website technical infrastructure for global reach; here we focus only on how catalog pages should be generated.

Static generation on its own is not a solution but a rendering strategy. On the same site, some pages can be fully static, some refreshed at intervals and some rendered on the server for every request. The right decision is made per page type: category and product pages, technical documents and corporate content can follow one method, while the quote form, stock lookup and dealer portal follow another. The sections below explain how to make that split and where to be careful.

Four approaches compared

Putting the options side by side clarifies what the decision should rest on. The ratings in the table show general tendencies; the actual outcome depends on the size of your site, your hosting setup and the way your team works.

CriterionSSG (static generation)ISR (incremental regeneration)SSR (server rendering)Classic CMS
Speed worldwideVery good; the file comes from the CDN edgeVery good; the cached version is servedDepends on server location and cachingDepends on plugins and cache settings
FreshnessFixed until the next buildUpdated by trigger or by timeCurrent on every requestCurrent, delayed if a cache is used
Build timeGrows with page countShort; pages are generated when neededLight build, load at runtimeNo build
Running costLow; file hosting is enoughLow to mediumServer cost rises with trafficServer, plugin and maintenance cost
Fits whenCatalog and corporate content change rarelyLarge catalog, content changes occasionallyData varies by user or momentSmall site, plugin-oriented team

The main message of the table is this: the balance between speed and freshness is the real axis separating the approaches. Static generation pushes speed to the top but freezes content until the next build. Incremental regeneration softens that freeze. Server rendering always delivers current data but requires every request to reach a server. A classic CMS is easy to set up but needs extra effort to scale and speed up.

As examples, tools such as Next.js, Astro, Hugo or Eleventy support static generation, and some of them can combine incremental regeneration and server rendering in the same project. Because which tool offers which feature under which conditions changes from version to version, we recommend checking the tool's current documentation before choosing.

Build times for large multilingual catalogs

The most debated side of static generation is build time. Since every page is produced during the build, the build gets longer as the number of pages grows. On a small corporate site this goes unnoticed; with thousands of products and several languages it directly affects your publishing flow.

How page counts multiply

In a multilingual catalog the page count grows by multiplication, not addition. The number of products is multiplied by the number of languages; then category pages, filter combinations, technical document pages and country pages are added. For a manufacturer publishing in four languages, every new product actually means four new pages. If image processing, sitemap generation and hreflang calculation are also part of the build step, the time grows faster than expected.

The question to ask here is whether every page really needs to be generated at build time. In most catalogs, most traffic goes to a limited set of category and product pages. Generating rarely visited pages on first request and caching them shortens the build while barely affecting the user experience.

Ways to split the build

Several methods can be combined to keep a growing build under control:

  • Priority pre-rendering: the home page, category pages and the most visited products are generated in the build; the rest are created on first request and cached.
  • Split by language: languages of the main markets are built up front, secondary languages are generated on demand.
  • Separate image processing: image resizing happens in an image service or on the CDN, not during the build.
  • Cached data fetching: data from the CMS is fetched once during the build instead of one query per page.
  • Incremental builds: if your tool supports it, only changed pages are regenerated.

How to keep content quality while producing thousands of product pages from templates is a separate topic, covered in detail in scaling thousands of SKUs safely with programmatic product pages. A build strategy gives more consistent results when it is planned together with the staged rollout logic described there.

Tall wooden library shelves with books arranged in neat rows
Photo: Moussa Idrissi / Pexels

On-demand revalidation

The biggest weakness of a static page is that it goes stale when content changes. On-demand revalidation removes that weakness by tying refreshes to events rather than time. When a product is updated, the CMS or admin panel sends a signal telling the site to regenerate the relevant page. The page is refreshed on the next request or in the background, and every other page stays as it is.

Compared with time-based refreshing, this method has two advantages. First, unchanged pages are not regenerated for nothing, so the server and cache do no unnecessary work. Second, a changed page is updated without waiting; a price list or certificate detail does not stay outdated for hours.

The CMS as the trigger

In this setup the CMS is not only a content entry screen but also the trigger of the publishing flow. When someone presses save or publish, the address of the affected page is sent to a revalidation endpoint. Protecting that endpoint with a secret key prevents forged requests from forcing pages to be regenerated over and over. On multilingual sites, it must also be explicit which language versions a signal covers; refreshing only the Turkish page while leaving the English version stale is a common mistake.

Pages that must refresh together

A product change does not affect only that product's page. The category page where it appears, the related products block, the sitemap and sometimes the featured items on the home page must also be updated. Listing these relationships in advance keeps revalidation from being incomplete:

  1. The product page itself, in all language versions.
  2. The category and subcategory pages the product belongs to.
  3. Comparison or product family pages that list the product.
  4. The sitemap and any product feed files.

Cache tags are a practical way to manage these relationships: pages are tagged with the products they contain, and when a product changes, every page carrying that tag is invalidated together. Tag support differs between tools and between CDNs, so check the current documentation of your own stack.

Forms and search as dynamic islands

One of the first objections to a static site is how interactive parts such as the quote form, on-site search and stock lookup will work. The answer is to keep only those parts dynamic instead of making the whole page dynamic. This is often called dynamic islands or islands architecture: the body of the page arrives as static HTML, while the small areas that need interaction run in the browser or on a separate endpoint.

The quote form is the most typical example. The form's markup is part of the static page; the submission goes to an API endpoint, a serverless function or a form service. The page opens quickly and the form data is still processed securely. Questions about personal data collected through the form, such as privacy notices, retention periods and consent flows, require legal assessment; this article is not advice on that subject.

Site search has similar options. In a small or medium catalog, a search index produced at build time can be loaded into the browser and run on the client side. In a large catalog, a separate search service or server endpoint is a better fit, with the index pushed to the service on every product update. In both cases the category and product pages themselves stay static and are crawled without trouble by search engines.

The point to watch with islands is that the dynamic part must not carry the main content of the page. Information you want visible in search, such as the product description, technical specifications and price range, belongs inside the static HTML; only details that change by visitor or moment should be left to the island.

CDN caching and static HTML

The worldwide speed advantage of static generation really shows when it is combined with a CDN. The ready HTML file is served from the CDN edge closest to the buyer; a purchaser in Germany and a distributor in the Gulf receive the same page from a point near their own region. Even if the origin server is in Türkiye, a page already in the cache does not need the request to travel all the way to Istanbul.

For this to work, the HTML must actually be cacheable. No user-specific cookies in the response, a clear and consistent Cache-Control header, and revalidation that also purges the CDN cache are the three basic conditions. We described multi-region cache setup step by step in the multi-region CDN setup guide.

The way to see whether caching really works is to measure from different countries. Server response time (TTFB) should be low and consistent for a page served from cache; if it is clearly higher in one region, either the cache is missing there or the page is being served in a way that cannot be cached. You can read how to run that measurement in measuring TTFB by country.

Long-exposure night shot of red and white light trails moving along a highway
Photo: Markus Spiske / Pexels

When SSG is a poor fit

Static generation is not the right choice for every catalog. Knowing where it falls short from the start prevents an expensive architectural change later.

Frequent price and stock changes

In catalogs where prices change several times a day, stock levels are tracked in real time or prices follow exchange rates, a static page goes stale constantly. Triggering revalidation on every change is possible, but as the frequency rises, the simplicity static generation offers disappears. There are two ways out: move price and stock information into a dynamic island, or render the affected pages on the server. In most B2B export catalogs prices are set by quotation anyway, so the problem stays limited; on sites that sell more like retail, it becomes decisive.

Personalised content

A dealer-specific price list, a product range that varies by customer or an order history shown to a signed-in user cannot be delivered as a static page. These sections belong in a separate portal or in server-rendered pages. The public catalog can stay static while personalised areas are kept apart from it.

Team and publishing habits

Even a technically suitable catalog runs into trouble if the content team does not know when each change goes live. How long it takes for a page to update after pressing publish should be explained clearly to the team and be visible in the admin panel. Otherwise the same content gets saved several times, or nobody notices that the old version is still live.

Functions running on edge servers and serverless architecture can also be weighed as alternatives to static generation. We discussed when these options make sense for export websites in edge hosting and serverless for export websites.

Practical steps to decide

Following this order makes it easier to decide which approach suits your catalog:

  1. List your page types: write down corporate pages, categories, products, documents, blog, forms and portal pages separately.
  2. Note how often they change: does each page type change a few times a year, once a week or several times a day?
  3. Identify personalised data: if any information varies by visitor, move that part to an island or the server side.
  4. Calculate the total page count: multiply products by languages, add categories and supporting pages, then decide which part is generated at build time.
  5. Map revalidation relationships: write down which pages must refresh together when a product changes.
  6. Set up caching and measurement: plan cookie-free HTML, clear Cache-Control headers and regular TTFB measurement from different countries.

For most exporters, these steps end in a mixed structure: corporate content and the catalog run on static or incrementally regenerated pages, forms and search on dynamic islands, and the dealer area on the server side. This mix is not a compromise; it is every page being generated according to its own needs.

Ask yourself: when a product detail in your catalog changes, do you know how many minutes it takes for that change to reach buyers in every language and every market?

FAQ

Frequently Asked Questions

  • Is static site generation a good fit for a multilingual export catalog?

    In most cases it is, as long as catalog content does not change several times a day. Every language version is produced as ready HTML and served from a CDN point close to the buyer. If the page count is very large, generating rarely visited pages on first request keeps build times under control.

  • How does a static page update when product information changes?

    With on-demand revalidation, the CMS signals the site to regenerate the affected page at the moment of saving. Only the changed product page and the pages that depend on it, such as categories, product families and the sitemap, are refreshed. Make sure the signal covers every language version.

  • Do build times become a problem with thousands of products?

    If every page is generated on every build, the time grows with the number of products and languages. Building priority pages up front and generating the rest on first request largely solves this. Moving image processing out of the build and fetching CMS data once also shortens it.

  • Can a quote form work on a static site?

    Yes, the form markup is part of the static page while the submission goes to an API endpoint, a serverless function or a form service. The page loads quickly and the form data is still processed on the server side. Obligations around personal data need a separate legal assessment.

  • When should ISR be chosen over pure SSG?

    Incremental regeneration is more practical when the catalog is large and content changes occasionally. Pages are generated on demand and cached, so builds stay short while changes go live by trigger or at set intervals. For small sites that rarely change, full static generation is usually enough.

  • Do static pages rank better in search engines?

    Static generation does not give a ranking advantage on its own. What it provides is fast, consistent delivery of content as ready HTML that crawlers can read easily. Rankings still depend on content quality, internal linking and page experience; check the official source for the current state.

  • Can SSG be used for a catalog with frequently changing prices?

    It can, but price and stock information must be separated from the static body of the page. That information is shown in a dynamic island, or the affected pages are rendered on the server. If changes happen very often during the day, most of the simplicity of static generation is lost.

  • Does a static site keep its speed advantage without a CDN?

    Partly, because the server sends a ready file instead of building a page on every request. However, all requests still travel to a single server location, so buyers in distant markets still face network latency. Consistent worldwide speed requires static HTML to be served from CDN edge locations.

Related Articles

No comments yet

Leave a Comment