Just setup a new server and have installed mod_pagespeed.
It only seems to be working on html pages, not PHP. Below are the headers for two simple pages and apart from the Vary: Accept-Encoding
I can't see any differences. Can anyone help me to get this working?
Below is a php page where you can see pagespeed is not working
HTTP/1.1 200 OK
Date: Thu, 29 Sep 2016 09:20:35 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
Set-Cookie: __cfduid=d160aaa9e45a863e3a570263393bd44d41475140835; expires=Fri, 29-Sep-17 09:20:35 GMT; path=/; domain=.thinkoptimised.com; HttpOnly
Set-Cookie: grav-site-40d1b2d=eo47rrkp2bv5vo91fn8gjjqbs0; expires=Thu, 29-Sep-2016 09:50:35 GMT; Max-Age=1800; path=/; domain=www.thinkoptimised.com
Expires: Thu, 06 Oct 2016 09:20:35 GMT
Cache-Control: max-age=604800
Pragma: no-cache
Set-Cookie: grav-site-40d1b2d=eo47rrkp2bv5vo91fn8gjjqbs0; expires=Thu, 29-Sep-2016 09:50:35 GMT; Max-Age=1800; path=/; domain=www.thinkoptimised.com; HttpOnly
Content-Encoding: none
Server: cloudflare-nginx
CF-RAY: 2e9e5c2f16de1359-LHR
Below is the html page where you can see pagespeed is working
HTTP/1.1 200 OK
Date: Thu, 29 Sep 2016 09:21:20 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Set-Cookie: __cfduid=dac868428de03c5593734cc0f9972f9421475140880; expires=Fri, 29-Sep-17 09:21:20 GMT; path=/; domain=.thinkoptimised.com; HttpOnly
Vary: Accept-Encoding
X-Mod-Pagespeed: 1.11.33.2-0
Cache-Control: max-age=0, no-cache
Server: cloudflare-nginx
CF-RAY: 2e9e5d4626f40a66-LHR
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/3b1b130b-a1f5-4e83-af60-ae7025b9ec0b%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/3b1b130b-a1f5-4e83-af60-ae7025b9ec0b%40googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/89711a01-925d-4e48-9abd-b377c648e07c%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/3b1b130b-a1f5-4e83-af60-ae7025b9ec0b%40googlegroups.com.
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "mod-pagespeed-discuss" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/89711a01-925d-4e48-9abd-b377c648e07c%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/bb9a3ab0-5698-4b30-9d4b-f29267ee0457%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> >> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> >> >> > To view this discussion on the web visit
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/3b1b130b-a1f5-4e83-af60-ae7025b9ec0b%40googlegroups.com.
>> >> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >> >
>> >> >> > --
>> >> >> > You received this message because you are subscribed to the Google
>> >> >> > Groups
>> >> >> > "mod-pagespeed-discuss" group.
>> >> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> >> > send
>> >> >> > an
>> >> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> >> > To view this discussion on the web visit
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/89711a01-925d-4e48-9abd-b377c648e07c%40googlegroups.com.
>> >> >> >
>> >> >> > For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "mod-pagespeed-discuss" group.
>> >> > To unsubscribe from this group and stop receiving emails from it,
>> >> > send
>> >> > an
>> >> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/bb9a3ab0-5698-4b30-9d4b-f29267ee0457%40googlegroups.com.
>> >> >
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "mod-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/mod-pagespeed-discuss/092ab413-bd48-419c-9cf8-219e27de8566%40googlegroups.com.
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
> email to mod-pagespeed-discuss+unsub...@googlegroups.com.
>> email to mod-pagespeed-discuss+unsub...@googlegroups.com.