我们正在使用W3 Total Cache(页面缓存 - 磁盘:基本版)。这会导致为桌面和移动设备生成相同的缓存。
我们需要针对移动设备和桌面的单独缓存,我们尝试使用用户代理组,但似乎我们没有正确配置它或者它没有按预期工作。
但两者的生成缓存仍然相同,以下是桌面和移动设备的调试信息:
桌面:
Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/
Page Caching using disk
Page cache debug info:
Engine: disk
Cache key: xxxxxxxxxxxxxxxxxxxxxxxxx
Creation Time: 1478697928.000s
Header info:
Set-Cookie: _wp_session=xxxxxxxxxxxxxx; expires=Wed, 09-Nov-2016 13:55:27 GMT; Max-Age=1800; path=/
Content-Type: text/html; charset=UTF-8
X-Powered-By: W3 Total Cache/0.9.5.1
Link: <http://my-site.com/>; rel=shortlink
Served from: my-site.com @ 2016-11-09 13:25:28 by W3 Total Cache
iPhone:
<!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/
Page Caching using disk
Page cache debug info:
Engine: disk
Cache key: 50e7360d67b0ae9ff4a13ced7367e6c5
Creation Time: 1478697928.000s
Header info:
Set-Cookie: _wp_session=xxxxxxxxxxx; expires=Wed, 09-Nov-2016 13:55:27 GMT; Max-Age=1800; path=/
Content-Type: text/html; charset=UTF-8
X-Powered-By: W3 Total Cache/0.9.5.1
Link: <http://my-site.com:81/>; rel=shortlink
Served from: my-site.com @ 2016-11-09 13:25:28 by W3 Total Cache -->
两个缓存的生成日期时间相同,这意味着没有任何单独的移动缓存。
如果我没有正确配置或缺少任何其他部分,任何人都可以提供帮助吗?