How Webhooks and On-Demand Revalidation Keep Headless CMS Sites Current
Static and ISR-based websites cache content for speed, but this means CMS updates may not appear live immediately after publishing. NomaCMS addresses this by sending a webhook POST request to a developer-configured HTTPS endpoint whenever content events like publish or update occur. The receiving app then uses Next.js functions such as revalidateTag or revalidatePath to selectively clear only the affected cache, avoiding a costly full site rebuild. Developers configure the webhook via the NomaCMS dashboard or SDK, setting a secret for HMAC-SHA256 signature verification to secure the handler. This approach gives content editors near-instant publish-to-live behavior while preserving the performance benefits of CDN and framework-level caching.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in