CACHE_CONTROL_HEADER
CACHE_CONTROL_HEADER ='Cache-Control'
Add `no-store` cache control directive to WP REST API requests.
rest_post_dispatch(\WP_HTTP_Response $result,\WP_REST_Server $server,\WP_REST_Request $request)
Add `no-store` to nocache headers, but only once and only if not already modified through endpoint.
\WP_HTTP_Response | $result | Result to send to the client. Usually a WP_REST_Response. |
\WP_REST_Server | $server | Server instance. |
\WP_REST_Request | $request | Request used to generate the response. |
instance(string $namespace): \MatthiasWeb\Utils\ServiceNoStore
Get a new instance of ServiceNoStore.
string | $namespace | Must start with a leading slash! |