broken image, css, js

40 views
Skip to first unread message

Havas Ferenc

unread,
Dec 29, 2021, 8:44:53 AM12/29/21
to mod-pagespeed-discuss
Hello,

We installed the pagespeed module with default config,  since lot of images, css, js path in html have been replaced and the replaced paths are broken and non replaced paths also.

ex: 

Any idea how to fix ? Thanks a lot!

Best, Ferenc 



Longinos

unread,
Dec 29, 2021, 3:57:43 PM12/29/21
to mod-pagespeed-discuss
Hi
Pagespeed by default only rewrites the http domain from where it work.
But you use https, not http.
So pagespeed can´t reach your files and trow <!--4xx status code, preventing rewriting of messages,
You can view these messages adding ?PageSpeedFilters=+debug to you url.
So:
1.- you need to auth the https version: ModPageSpeedDomain http*://*.havasweb.hu
This cover http and https and also any subdomain.
2.- You need to configure https fecht:
2 ways to do this: Enable https fecht or configure ModPageSpeedLoadFromFile
ModPagespeedFetchHttps enable
ModPagespeedSslCertDirectory directory
ModPagespeedSslCertFile file (this only if your server is Redhat/centos distro)
OR
ModPagespeedLoadFromFile "https://www.example.com" "/var/www/example/static/";

Some files have Cache-Control: max-age=0, no-cache, must-revalidate
These files got untouched by pagespeed, a public cacheable header is needed, think in pagespeed as a proxy.
Reply all
Reply to author
Forward
0 new messages