update comment to accurate description

This commit is contained in:
Ron Rennick 2020-06-18 10:56:31 -03:00
parent 6743073a0f
commit 4a9fb66a39
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class WC_Cache_Helper {
* @param bool $enable_nocache_headers Flag indicating whether to add nocache headers. Default: true. * @param bool $enable_nocache_headers Flag indicating whether to add nocache headers. Default: true.
*/ */
if ( apply_filters( 'woocommerce_enable_nocache_headers', true ) ) { if ( apply_filters( 'woocommerce_enable_nocache_headers', true ) ) {
// no-transform: Opt-out of Google weblight if page is dynamic e.g. cart/checkout. https://support.google.com/webmasters/answer/6211428?hl=en. // no-transform: Opt-out of Google weblight. https://support.google.com/webmasters/answer/6211428?hl=en.
$headers['Cache-Control'] = 'no-transform, no-cache, no-store, must-revalidate'; $headers['Cache-Control'] = 'no-transform, no-cache, no-store, must-revalidate';
} }
return $headers; return $headers;