thoughtis / cata-blocks

Block Editor components for use with the Cata theme.
GNU General Public License v3.0
1 stars 0 forks source link

When REST API block makes a request to the same domain, prevent HTTP request #163

Open douglas-johnson opened 1 month ago

douglas-johnson commented 1 month ago

It should be possible to use rest_get_server() to execute same-domain requests without the need for HTTP requests or the associated caching. Then internal queries in the REST API block should always appear up to date rather than minutes or hours behind other queries.