PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.3.7
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.3.7
1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 33 releases
← All changes | includes/class-cache-benchmark.php +9 -7 1.1.1 → 1.3.7 View file →
@@ -157,15 +157,17 @@
157 157 *
158 158 * @return array{ttfb_ms:float,time_ms:float,bytes:int,bytes_transferred:int,status:int}
159 159 */
160 160 private static function measure( string $url, bool $bypass ): array {
161 - $headers = array(
162 - 'User-Agent' => 'xSpeed Benchmark/1.0',
163 - // Ask for compression like a real browser so the WIRE size is
164 - // measurable. Only encodings we can decode locally — no brotli
165 - // (ext-brotli is rare, and an undecodable body would break the
166 - // uncompressed measurement).
167 - 'Accept-Encoding' => 'gzip, deflate',
161 + $headers = Self_Traffic::headers(
162 + array(
163 + 'User-Agent' => 'xSpeed Benchmark/1.0',
164 + // Ask for compression like a real browser so the WIRE size is
165 + // measurable. Only encodings we can decode locally — no brotli
166 + // (ext-brotli is rare, and an undecodable body would break the
167 + // uncompressed measurement).
168 + 'Accept-Encoding' => 'gzip, deflate',
169 + )
168 170 );
169 171 if ( $bypass ) {
170 172 // The X-XSpeed-Bypass header only short-circuits the PHP
171 173 // drop-in. When nginx static-rewrite is firing it would