I am playing around with EE for a few days now and there are two problems regarding to ngx_pagespeed which I cannot solve on my own.
-
If I access the page http://mydomain/ngx_pagespeed_statistics the statistic pop up for a second and then disappears. The logs are showing the following:
IP - - [20/Feb/2016:12:06:43 +0100] mydomain “GET /ngx_pagespeed_statistics? HTTP/1.1” 200 13965 “http://mydomain/ngx_pagespeed_statistics?cache” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36”
IP - - [20/Feb/2016:12:06:44 +0100] mydomain “GET /ngx_pagespeed_statistics/stats_json HTTP/1.1” 404 191 "http://mydomain/ngx_pagespeed_statistics?" “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36”
2016/02/20 12:06:44 [error] 30288#0: *509 open() “/var/www/mydomain/htdocs/ngx_pagespeed_statistics/stats_json” failed (2: No such file or directory), client: 185.17.207.32, server: mydomain, request: “GET /ngx_pagespeed_statistics/stats_json HTTP/1.1”, host: “mydomain”, referrer: "http://mydomain/ngx_pagespeed_statistics?"
The folder /var/www/mydomain/htdocs/ngx_pagespeed_statistics does not exist on my server. Did I forgot to install something regarding pagespeed?
-
I try to get the following filter to work:
pagespeed EnableFilters combine_javascript;
Unfortunately, nothing happens. The JS files are still not concatenated. I am testing with the Standard Theme of WP. Is it because of the attached parameters (?ver=xx) ?
Update:
Problem 2) seems to be solved. After I waited a time the JS files are concatenated now. Do I have to clear any caches (beside Browser Cache) if I use the following EE command?
sudo ee site edit mydomain --pagespeed