Skip to main content
Version: Latest
FeatureAIv1.4.3open-dxp/headless-bundle

Concepts

Site-based Host Configuration​

Each OpenDXP site can be individually configured for the headless bundle. Open Edit Site in the context menu of the site's document in the document tree. The settings are in Additional Settings. The Headless scope provides three settings:

SettingTypeDescription
General DomainCheckboxMarks this site as the general domain used across the application. Only one site should be marked at a time.
Flush Frontend CacheCheckboxWhen enabled, this site's frontend receives the cache tags of every change. See Frontend Cache.
Asset Base URITextA base URL prepended to all asset paths for this site. Overrides the global assets.host setting.

General Domain​

Mark exactly one site as the General Domain. The headless bundle reads this site's main domain and uses it as the application's base host wherever a general domain is needed. The value is cached and automatically cleared when site settings change.

Asset Base URI​

Every asset path in API responses gets a base URL prepended to it. The bundle resolves the asset base URI in the following order:

  1. Context site – if the current request has a headless context site, its Asset Base URI setting is used (falling back to the global assets.host if not set on the site).
  2. Global assets.host – if no context site is available but assets.host is configured, that value is used directly.
  3. General Domain site – if no context site is available and assets.host is not configured, the site marked as General Domain is used as a fallback source for its Asset Base URI.
  4. null – if none of the above apply, no base URI is prepended.

See Asset Routing for the global assets.host configuration.

Flush Frontend Cache​

Sites with Flush Frontend Cache enabled receive the cache tags of every change at their frontend. The URL is built from the site's main domain and the configured path:

https://{site.mainDomain}{frontend_cache.path}

Each enabled site gets its own request. See Frontend Cache.