[wp-trac] [WordPress Trac] #40116: Since 4.7.3 the json output for the REST API is wrongly formatted breaking Android APP
WordPress Trac
noreply at wordpress.org
Sun Mar 12 11:02:58 UTC 2017
#40116: Since 4.7.3 the json output for the REST API is wrongly formatted breaking
Android APP
--------------------------+------------------------------
Reporter: tottaz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7.3
Severity: normal | Resolution:
Keywords: close | Focuses: rest-api
--------------------------+------------------------------
Changes (by swissspidy):
* keywords: => close
* severity: blocker => normal
Comment:
Hey there,
Thanks for your report and welcome to Trac!
I assume you refer to the WordPress Android app?
From what I can see, both of your sites are behind Cloudflare, which seems
to return these response as `text/html` instead of `application/json`. So
you probably just need to adjust your caching rules there to not cache
everything under `wp-json`.
Because when I access something like https://thelonelycyclist.org/wp-
json/?foo, Cloudflare bypasses the cache because of the query parameter
and properly serves `application/json`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40116#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list