Viewing 1 replies (of 1 total)
  • Adding the following to WP_JSON_Server->serve_request before sending headers works for us (reduced the JSON file size 86%!).

    if (function_exists('ob_gzhandler')) {
    	ob_start('ob_gzhandler');
    }

    Would love to see this functionality in the plugin as well. Thank you for your work!

Viewing 1 replies (of 1 total)
  • The topic ‘Enable gzip compression for /wp-json/posts’ is closed to new replies.