I’m getting a “mod_pagespeed_ is not defined” error and also any of the js script are loaded. When I make downgrade to the 6.5.5. version everything is fine.
What could it be? Is a server related issue? Has something really to do with your plugin? (I’ve a stage site and I?can’t replicate the issue).
Thanks
Davide
]]>As can read in https://www.modpagespeed.com/doc/configuration#XHeaderValue
By default, PageSpeed adds an header, X-Mod-Pagespeed
in Apache, X-Page-Speed
in Nginx
Distinct values may be configured, the header always is present when enabled.
Happy new year!
]]>Here you can see the apache log: error log
Here you can see the log of pagespeed: stats_log_global
The error does not appear when I am logged into WordPress, it is very rare.
Initially mod_expire was not active in apache, I had to activate it to be able to add the manual cache browser rules. After uninstalling the plugins and seeing that there were errors, I had to disable mod_expire again and remove the rules, but this did not work.
]]>There is a conflict between the caching rules of Pagemod and Autoptimise but you can fix it by adding the following to your .htaccess file.
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedDisallow “*/wp-includes/*”
ModPagespeedDisallow “*/wp-content/*”
</IfModule>
Full disclosure I also use Cache Enabler.
]]>Is anyone else running both of these on their sites? Is it worth compressing with mod_pagespeed AND Breeze, or just one or the other?
Many thanks in advance,
Anthony
]]>First of all thanks for your plugin. Is awesome!
I would like to know if there is some config to do when mod_pagespeed is enabled. Before enable mod_pagspeed the option “inline and defer CSS” was working properly. After activate mod_pagespeed the defer css stop works.
Att,
Rafael Figueiredo.
]]>Simply Static is a great plugin.
Based on my experience, I’m posting a little feedback.
mod_pagespeed is an apache module made by google to optimize a website. When it is installed, it rewrites by default all the vhosts websites resources.
It can for example rewrite image for better compression from image.jpg to image.jpg.pagespeed-random.webp
These images are cached locally on the server but not in the www directory. The images are displayed with a “trap” mechanism on the module. And this trap can have a side effect.
On my website, simply static did fail creating the website because the html was the one containing rewritten image and the copy didn’t contain them.
I forgot that mod_pagespeed was installed on this server and had to investigate.
Disabling mod_pagespeed on the specific vhost (in .htaccess modPagespeed Off) did solve the problem.
To save the time I lost for other users, I suggest to add on the diagnostic page a test to see if mod_pagespeed is activated or issue a warning when image containing “pagespeed” in the path cannot be copied.
best regards,
Vincent
I’ve installed the newest WP 4.7, and Hypercache 3.2.6 on a server with LAMP and mod_pagespeed. Server is an AWS EC2 Amazon-linux installation.
However I cannot get mod_pagespeed to optimize the pages when they are cached by Hyper-cache.
It works perfectly when Hypercache is uninstalled/disabled, and if I redirect the browser directly to the cached html-file (ie. /wp-content/cache/../index.html) then mod_pagespeed also works.
I’ve NOT used compression in Hypercache, as recommended. Only default settings has been used.
Have anyone gotten Hypercache and mod_pagespeed to work together?
Do you have any idea, what the problem could be?
I can provide additional information, if needed.