Thanks for your response.
I guess I was not precise enough 😉
Yes, I know I can use LiteSpeed caching or similar (server-side caching).
What I was looking for was something like cache-control-headers (maybe WP_REST_Server::send_headers) for specific routes to enable client-side caching.
I am still on the way, to find the best solution.
But regarding fields of MB:
It's not only about hiding fields.
Most likely I am looking for something like
- a route 1, where I can have the full field set
- and route 2, where I can have only a subset
What would be your recommended way (please with a simple example)...
Also, is there any possibility to output ONLY MB_fields?
I want to exclude any other fields from WP like category information, URL, etc...