Skip to content

Commit 33c6961

Browse files
committed
Remove support for obsolete Google Web Light
1 parent 4697b87 commit 33c6961

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

plugins/woocommerce/includes/class-wc-cache-helper.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,14 @@ public static function additional_nocache_headers( $headers ) {
5151
$set_cache = false;
5252

5353
/**
54-
* Allow plugins to enable nocache headers. Enabled for Google weblight.
54+
* Allow plugins to enable nocache headers.
5555
*
5656
* @param bool $enable_nocache_headers Flag indicating whether to add nocache headers. Default: false.
5757
*/
5858
if ( apply_filters( 'woocommerce_enable_nocache_headers', false ) ) {
5959
$set_cache = true;
6060
}
6161

62-
/**
63-
* Enabled for Google weblight.
64-
*
65-
* @see https://support.google.com/webmasters/answer/1061943?hl=en
66-
*/
67-
if ( false !== strpos( $agent, 'googleweblight' ) ) {
68-
// no-transform: Opt-out of Google weblight. https://support.google.com/webmasters/answer/6211428?hl=en.
69-
$set_cache = true;
70-
}
71-
7262
if ( false !== strpos( $agent, 'Chrome' ) && isset( $wp_query ) && is_cart() ) {
7363
$set_cache = true;
7464
}

0 commit comments

Comments
 (0)