Blitz timeouts with EasyEngine [pagespeed issue]
Did a quick comparison of the same site on two instances:
-
with W3TC Page (memcached), Object Cache (memcached), and W3TC Browser cache enabled. - My current setup
-
with EasyEngine Nginx fastcgi cache, Nginx Browser cache, and w3tc object cache (memcached).
Test site was a copy of real full wordpress site with more than 500 posts.
Attached are the Blitz results. EE Nginx settings are default. I am not sure if EE Nginx settings should be optimized but I am surprised to see the big difference. @rahul286 any thoughts would be much appreciated.

Thanks @rahul286. Exactly the reason why I tried pagespeed - minifying and CDN.
minifying and CDN
BTW basic CDN can be done using nginx subs_filter
For minify, if pagespeed refuses to work again, I am planning to try some wp plugin.
But I really wish pagespeed to work!
Good to know. My second option after pagespeed for minifying is autoptimize.https://wordpress.org/plugins/autoptimize/
But like you I hope pagespeed works.
During my clients testing, we pulled all the files to AWS's cloudfront/S3 bucket. From Digital Ocean, I didn't notice any speed gain in the images being served. When I profiled those resources, the CDN didn't offer any advantages, it had a few negative pagespeed impacts though, 1, images from the CDN could not be converted to webp, or inlined, or optimized for sizes. GTmetric, Page Rank were both dinged when I served images from the CDN rather than from the site under page speeds control. We backed the CDN out and allow page speed to serve those images in favor of the better score, since there wasn't a content delivery improvement. For this client, SPDY and SSL were the improvements. I think removing the CDN and plugin to manage it, although we were handling it through W3tc plugin, and then testing with having page speed handling it with:
pagespeed MapRewriteDomain cdn.example.com www.example.com;
Link to one analysis of SPDY + SSL over CDN: https://thethemefoundry.com/blog/why-we-dont-use-a-cdn-spdy-ssl/
@htpcBeginner Have you looked at this one: https://wordpress.org/plugins/wp-minify-fix/ This one was updated and email blast sent out today - it has a pro version too: https://wordpress.org/plugins/wp-smushit/
I'd rather not have a WP plugin handle this stuff, and allow PS to handle it. I have a feeling my WP install is already over bloated with plugins and it's killing the performance.
Good stuff about CDN. That is what I am finding with CDN tests and hence why I am not using CDN currently.
I am going to leave minify off for now until we know something more about pagespeed, which is my preference.
The problem we have encountered with pagespeed concatenating and minifying js/css is the url length limit, so all scripts, and all css don't make it into one file. That's a bummer, and not all the plugins are not playing nice. Some suggestions to help PS handle these were to:
- remove the query strings appended to the css and js enque'ed files.
- remove the id's for the css includes/calls.
A custom filter worked to resolve both these issues.
// Remove query string from static files function remove_cssjs_ver( $src ) { if( strpos( $src, '?ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
function remove_style_id($link) { return preg_replace("/id='.*-css'/", "", $link); } add_filter('style_loader_tag', 'remove_style_id');
I thought to maybe re-write the file names so more could be smushed together in one call to the server, but we eventually had to back this out since the smushed JS sometimes didn't completely function correctly. So now we are back to 20 css requests, and 26 js requests, which surprisingly still delivers a 94% GTmetric score. :(
Update:
Please check for related discussion - https://groups.google.com/forum/#!msg/ngx-pagespeed-discuss/vzSq8XQPGmM/9mE11D-9U8YJ
Current way is to configure downstream caching in pagespeed. But in my test it did not perform well and was too complex to setup.
Pagespeed developer is working on simplifying this - https://groups.google.com/d/msg/ngx-pagespeed-discuss/vzSq8XQPGmM/vAOyCN_JH0cJ
I am not sure how long it will take but I will prefer to wait till then.
Update:
http://www.jefftk.com/downstream-caching-draft
So far downstream caching seems to be only workaround.
Need to check:
- [ ] weather downstream-caching works at all with php/mysql crash
- [ ] how it works with full-page redis and fastcgi-cache
- [ ] scale - HTML response rate should be similar to non-pagespeed variant
- [ ] multiple sites - can it work nicely for 100s of sites on a single server. Will each site need two nginx config blocks?
- [ ] cache purging through nginx-helper
We no longer support pagespeed so we won't be able to look further in this. Sorry.