Cloudflare\Zone\Settings::change_prefetch_preload PHP Метод

change_prefetch_preload() публичный Метод

Change Prefetch Preload setting (permission needed: #zone_settings:edit) CloudFlare will prefetch any URLs that are included in the response headers. This is limited to Enterprise Zones.
public change_prefetch_preload ( string $zone_identifier, string | null $value = null )
$zone_identifier string API item identifier tag
$value string | null Value of the zone setting (default: off)
    public function change_prefetch_preload($zone_identifier, $value = null)
    {
        $data = ['value' => $value];
        return $this->patch('zones/' . $zone_identifier . '/settings/prefetch_preload', $data);
    }