Hi. I've been chasing this issue for a full day.
My Apache Server is no longer returning the webp versions of images or caching any files. The original files in their original format and original names are always returned to the client.
I can see in /var/cache/mod_pagespeed/v3/
mydomain.com/https,3A/,2Fmydomain.com/.. the full contents of the website, however every file (regardless of type) is 173 bytes in length and simply contains a header similar to:
h¨^@^@^@^A<00>N(¨ê<0d>Åï/FÈÂûÄï/8^B@^BJ%
^DDate^R^]Mon, 14 Feb 2022 14:24:29 GMTJ(
^GExpires^R^]Mon, 14 Feb 2022 14:29:29 GMTJ^\
^MCache-Control^R^Kmax-age=300J^Z
^DEtag^R^RW/"PSA-12345678"Xà§^Rh^@p^@
I have tried flushing the cache, re-installing pagespeed, and even built a new server, but keep getting the same responses.
I can see in the
mydomain.com/pagespeed_admin/message_history which has lots of:
[Info] [16189] HTTPCache key=
https://mydomain.com/resources/images/fav/android-icon-192x192.png fragment=
mydomain.com: remembering recent failure for 299 seconds.
I've checked the logs of the proxied app and I see the request for the file with a 200 response and the agent as pagespeed.
The Apache server hosts several virtual hosts that are reverse-proxied to application servers. Some of the hosts still work with pagespeed returning the webp files, etc. I've looked at the headers of the working and non-working apps (directly - bypassing the apache server) and they are the same with regards to cache and pagespeed.
I'd appreciate it, if someone has some options I can try to help identify the issue.
pagespeed.conf
<IfModule pagespeed_module>
ModPagespeed on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath "/var/cache/mod_pagespeed/"
ModPagespeedLogDir "/var/log/pagespeed"
ModPagespeedSslCertDirectory "/etc/ssl/certs"
ModPagespeedFetchHttps enable
ModPagespeedPreserveUrlRelativity on
ModPagespeedFileCacheInodeLimit 500000
ModPagespeedEnableCachePurge on
ModPagespeedListOutstandingUrlsOnError on
ModPagespeedStatisticsLogging on
ModPagespeedMessageBufferSize 100000
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters rewrite_images
</IfModule>