Hitting the REST API from JS (inside a VF page) seems to be returning and old (or cached) version of the page layout.
returns the updated page layout. Adding a field or two, or even changing sections on the layout are appropriately represented in the response from the aforementioned URL. However, if I hit the following URL (note the vf subdomain):
it returns the original page layout before my changes. Same SessionID is used for both calls.
Is this some sort of caching problem on the Salesforce side or is there something else that I'm missing here?