Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • Documentation
    • WP Cloud API
    • FAQs
    • Partner Portal
    • New Partner Guide
    • Announcements
    • Changelog
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • API Documentation
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
      • Edge Cache preload
      • WooCommerce cart caching
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • Edge Rules overview
      • Edge Rule types
      • Edge Rule conditions
      • Verify Edge Rules
      • Edge Cache preload
      • WooCommerce cart caching
      • Edge Cache
    • Edge request logs
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
      • Edge request logs
    • Usage reporting
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Repair Yoast indexables
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning

Updates

  • Changelog
  • WP Cloud Status
  • Announcements
Documentation/WordPress on WP Cloud/Decoupled and headless WordPress

Decoupled and headless WordPress

LAST UPDATED

5 months ago

    WP Cloud can serve WordPress as the content management system for a decoupled frontend. This guide focuses on WPGraphQL with applications built using Next.js or Nuxt. Other headless architectures can work, but their request and caching behavior may differ.

    The frontend’s build strategy matters to the WordPress origin. Large bursts of uncached API requests can consume PHP workers or encounter rate limiting, even when the visitor-facing site is static.

    Use the standard WPGraphQL endpoint

    WPGraphQL provides a GraphQL API for WordPress. WP Cloud requires the plugin’s standard /graphql endpoint for optimal performance. Alternative routes may not receive the same platform handling and can be rate limited during a build.

    An HTTP 429 response during a build indicates that requests are being rate limited. Confirm that the frontend uses /graphql, then reduce concurrent and repeated requests before retrying. See Troubleshoot HTTP 429 and 599 errors for the platform metrics and logs that identify the reason.

    Framework-specific starting points include the Next.js WordPress guide and a headless WordPress JAMstack guide. These are third-party resources; their hosting and framework behavior is not a WP Cloud platform guarantee.

    Identify the frontend

    Set a custom User-Agent header on frontend and build requests instead of using the framework or HTTP client’s default. Use a value that identifies the application and version, such as:

    name-of-your-app/1.0

    A consistent application identifier helps distinguish the frontend’s traffic from browsers, crawlers, and other integrations during monitoring and troubleshooting.

    Reduce build requests

    Fetch only the fields and content required by each frontend route. For Next.js sites, Incremental Static Regeneration can update pages without rebuilding the complete site. WPGraphQL’s nodeByUri query can retrieve content for a known WordPress path.

    Limit build concurrency on services that send many requests at once. A starting configuration used by some Netlify builds is concurrency below 1,000 with a request interval of 100 milliseconds. Treat those values as a starting point rather than a platform limit; lower concurrency when Metrics or HTTP 429 responses show that the build is overwhelming the site.

    Cache GraphQL responses

    Review WPGraphQL’s caching guidance even when the site does not use the Smart Cache extension. Reusing a response is generally better than repeatedly asking WordPress to build it.

    When using WPGraphQL Smart Cache:

    1. Configure the client to use GET for cacheable GraphQL requests instead of POST.
    2. In GraphQL → Settings → Cache, set a suitable Cache-Control max-age. A value of at least 1,800 seconds is a useful starting point.
    3. Enable Use Object Cache.
    4. Set Object Cache expiration to at least 1,800 seconds unless the application’s freshness requirements need a shorter lifetime.

    WP Cloud Page Cache and Edge Cache can also reduce origin work when the method, response headers, and cache rules make a request eligible.

    Previous Cron scheduling
    Next Edge Cache preload

    Related Guides

    • ABSPATH

      Understand why ABSPATH points to managed WordPress core on WP Cloud and use WP_CONTENT_DIR for…

      1 Min.

      READ

    • Akismet and Jetpack

      Understand the platform-managed Akismet and Jetpack packages and how to unlock one before removal.

      1 Min.

      READ

    • Install Composer and WP-CLI packages

      Install Composer and site-scoped WP-CLI packages over Client SSH on WP Cloud.

      2 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications