| @@ -444,15 +444,17 @@ | ||
| 444 | 444 | array( |
| 445 | 445 | 'timeout' => 3, |
| 446 | 446 | 'sslverify' => ! $is_local, |
| 447 | 447 | 'redirection' => 0, |
| 448 | - 'headers' => array( | |
| 449 | - // `br` ONLY. Offering gzip as well would let a server that | |
| 450 | - // prefers gzip answer with it and look like a brotli | |
| 451 | - // failure, which is exactly the false negative this method | |
| 452 | - // exists to remove. | |
| 453 | - 'Accept-Encoding' => 'br', | |
| 454 | - 'Cache-Control' => 'no-cache', | |
| 448 | + 'headers' => Self_Traffic::headers( | |
| 449 | + array( | |
| 450 | + // `br` ONLY. Offering gzip as well would let a server that | |
| 451 | + // prefers gzip answer with it and look like a brotli | |
| 452 | + // failure, which is exactly the false negative this method | |
| 453 | + // exists to remove. | |
| 454 | + 'Accept-Encoding' => 'br', | |
| 455 | + 'Cache-Control' => 'no-cache', | |
| 456 | + ) | |
| 455 | 457 | ), |
| 456 | 458 | ) |
| 457 | 459 | ); |
| 458 | 460 | |
| @@ -713,9 +715,12 @@ | ||
| 713 | 715 | // deactivate us to avoid double-caching. |
| 714 | 716 | if ( 'xspeed/xspeed.php' === $file ) { |
| 715 | 717 | continue; |
| 716 | 718 | } |
| 717 | - if ( is_plugin_active( $file ) ) { | |
| 719 | + // Active for its other features with its own page cache switched | |
| 720 | + // off: nothing is caching pages, so there is nothing to warn | |
| 721 | + // about. An unreadable setting still counts. (#653) | |
| 722 | + if ( is_plugin_active( $file ) && false !== Cache_Plugin_Catalog::page_cache_state( $file ) ) { | |
| 718 | 723 | $found[] = $entry['label']; |
| 719 | 724 | } |
| 720 | 725 | } |
| 721 | 726 | |