简体   繁体   English

Google PageSpeed阻止某些WordPress页面完全呈现

[英]Google PageSpeed stops some WordPress pages from rendering fully

So I've got PageSpeed on top of Nginx serving a pretty simple Wordpress install. 因此,我在Nginx之上安装了PageSpeed,提供了非常简单的Wordpress安装。

This problem seemed to coincide with upgrading to Wordpress 4.2.2; 这个问题似乎与升级到Wordpress 4.2.2一致。 however, after downgrading to 4.1.5 to see if this was the issue, it turned out not to be the case. 但是,在降级到4.1.5以查看是否是问题所在之后,事实并非如此。

Normally I wouldn't blame PageSpeed, but using ?PageSpeed=off in the URL fixes the issue completely. 通常我不会怪罪PageSpeed,但是在URL中使用?PageSpeed = off可以完全解决此问题。 And just to be clear -- there's no cache in the admin area. 只是要清楚-管理区域中没有缓存。

Another odd thing is that it only seems to effect Pages (as opposed to Posts) in the CMS, so it seems like PageSpeed might have some conflict with scripts/styles/something specific to Pages. 另一个奇怪的事情是,它似乎只影响CMS中的Pages(而不是Posts),因此PageSpeed似乎与Pages特有的脚本/样式/内容有些冲突。

I am currently baffled, so any suggestions are appreciated. 我目前不知所措,所以任何建议都值得赞赏。

Open the file "pagespeed.conf" search for: ModPagespeedRewriteLevel PassThrough 打开文件“ pagespeed.conf”搜索:ModPagespeedRewriteLevel PassThrough

uncomment this line and change it to: ModPagespeedRewriteLevel CoreFilters (is save for most websites) 取消注释此行,并将其更改为:ModPagespeedRewriteLevel CoreFilters(保存到大多数网站)

if this line above not helps try to change into: ModPagespeedRewriteLevel OptimizeForBandwidth (stronger guarantee of safety) 如果上面的这一行不能帮助您尝试更改为:ModPagespeedRewriteLevel OptimizeForBandwidth(更安全的保证)

see also the online reference about this subject at PageSpeed: https://developers.google.com/speed/pagespeed/module/config_filters?hl=nl 另请参见有关该主题的在线参考, 网址 为PageSpeed: https : //developers.google.com/speed/pagespeed/module/config_filters?hl= nl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM