Nginx的fastcgi_cache不工作的一个WP网站(但工作正常time.php在不同的虚拟主机)
我运行的Ubuntu nginx 1.8与FPM PHP 5.5,在一个网站上我能够得到caching工作(与一个简单的时间输出) <?php echo time();?>显示: Connection:keep-alive Content-Encoding:gzip Content-Type:text/html Date:Fri, 08 Jan 2016 14:04:00 GMT Fastcgi-Cache:HIT Server:nginx/1.8.0 Transfer-Encoding:chunked X-Powered-By:PHP/5.5.9-1ubuntu4.14 但是对于WordPress站点来说,标题总是显示(甚至在注销和隐身时): Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection:keep-alive Content-Encoding:gzip Content-Type:text/html; charset=UTF-8 Date:Fri, 08 Jan 2016 14:02:42 GMT Expires:Thu, 19 Nov 1981 08:52:00 GMT Fastcgi-Cache:BYPASS Link:<http://mywpsite.com/wp-json/>; rel="https://api.w.org/" Link:<http://mywpsite.com/>; rel=shortlink Pragma:no-cache Server:nginx/1.8.0 Transfer-Encoding:chunked Vary:Accept-Encoding X-Powered-By:PHP/5.5.9-1ubuntu4.14 从维基我已经尝试不同的设置,并压缩到以下单个文件(tester.com工程,而mywpsite.com不 – […]