I’ve asked the question on git hub https://github.com/getgrav/grav/issues/1081 but have been pointed here.
Im at a loss as to how to solve this issue. Essentially any page run through grav seem to add a “Pragma:no-cache” header which I think is stopping mod_pagespeed from working.
To show that it isn’t a server config issue you can see pagespeed is working via:
and both pages return the “X-Mod-Pagespeed : 22.214.171.124-0” header. However the homepage doesn’t http://www.thinkoptimised.com/
Both the example pages are served from the same directory as the main Grav index.php
I can see that there isn’t anything in the core code that is inserting it so I don’t know where to look next.
I also tested this out on a fresh install of Grav on a fresh LAMP Digital Ocean droplet and have the same issues.
Trying to unset the header in the htaccess doesn’t solve the issue.
Has anyone else come across this or has anyone issue or have you got Pagespeed working?