wordpress - W3 total cache caches pages for HTTPS 'uniquely' 是什么意思?

标签 wordpress ssl caching w3-total-cache

W3 总缓存读取:

缓存 SSL (https) 请求 缓存 SSL 请求(唯一地)以提高性能。

enter image description here

现在我想要对所有页面进行硬缓存,无论是否为 https,总是返回缓存版本。问题是,我不能为页面禁用 https,因为我们在谷歌上的排名会较低,因为现在非 https 会给你带来惩罚。

这句话到底是什么意思?

最佳答案

精简版:这意味着页面缓存规则默认不会缓存 HTTPS 特定页面。所以 (http://example.com/page1) 会被缓存,但 (https://example.com/page2) 不会被缓存。
使这个 true 然后导致缓存自动创建页面缓存的特定 SSL 版本。

默认选项是 set to false :

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

如果设置为真则:

/**
         * 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}';
        }

关于wordpress - W3 total cache caches pages for HTTPS 'uniquely' 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41363807/

相关文章:

android - Restful API : Unable to get information from Wordpress Website

wordpress - 为什么使用 GNU gettext?

python 扭曲 : How to stop TLS?

ssl - 使用 webrtc 和 wowza 发布直播流

php - 同时调用 Memcache

google-chrome - Chrome 内存缓存与磁盘缓存

wordpress - 如何在wordpress中将文本密码转换为散列密码

wordpress - 无法在 Google Cloud Compute Engine 上运行 SSL 配置

python - 在 mechanize 中禁用 ssl 证书验证

ruby - 在 Unicorn 启动的 Thin 实例中重置缓存