Full page NGINX (or Cloudflare) caching and WordPress nonces
Goal: I want to cache the full WordPress response via NGINX and exclusively use the REST API for the user specific parts. Issue: I can’t get an authenticated nonce to use against the API. My plan was to expose a rest endpoint that returns a valid nonce shown below: add_action( ‘rest_api_init’, function () { register_rest_route( … Read more