protected function clearSiteData(): array
    {
        if (! ($this->config['clear-site-data']['enable'] ?? false)) {
            return [];
        }

        if ($this->config['clear-site-data']['all']) {
            $csd = '"*"';
        } else {
            // simulate array_only, filter disabled and get keys
            $flags = array_keys(array_filter(array_intersect_key(
                $this->config['clear-site-data'],
                array_flip(['cache', 'cookies', 'storage', 'executionContexts'])
            )));

            if (empty($flags)) {
                return [];
            }

            $csd = sprintf('"%s"', implode('", "', $flags));
        }

        return [
            'Clear-Site-Data' => $csd,
        ];
    }