W3 shared cache caches pages for HTTPS "unique", what does this mean?

Total W3 Cache Capacity:

SSL Caching Requests (https) SSL cache requests (unique) to improve performance.

enter image description here

now I want hard caching for all pages, if https or not, the cached version is always returned. The fact is, I can’t disable https for pages, since we will rank lower in google, since non https gives you a fine now.

What does this offer really mean?

+5
source share
1 answer

Short version: this means that page caching rules by default will not cache HTTPS pages. This way (http: // example. Com / page1) will be cached, but (https://example.com/page2) will not.
By creating this true , you can force the cache to automatically create a specific version of the SSL page cache.

By default, the parameter is set to false :

 'pgcache.cache.ssl' => array( 'type' => 'boolean', 'default' => false 

If set to true, then:

 /** * Set HTTPS */ if ( $config->get_boolean( 'pgcache.cache.ssl' ) ) { $rules .= " RewriteCond %{HTTPS} =on\n"; $rules .= " RewriteRule .* - [E=W3TC_SSL:_ssl]\n"; $rules .= " RewriteCond %{SERVER_PORT} =443\n"; $rules .= " RewriteRule .* - [E=W3TC_SSL:_ssl]\n"; $env_W3TC_SSL = '%{ENV:W3TC_SSL}'; } 
+4
source

Source: https://habr.com/ru/post/1261989/


All Articles