Lofesa commented on issue #1897: URL: https://github.com/apache/incubator-pagespeed-mod/issues/1897#issuecomment-969062799
Well.... think pagespeed is a proxy too, don´t store the html but some metadata about it. When pagespeed is working, html pages are served with cache-control: max-age=0, no-cache unless you explicity the `pagespeed ModifyCachingHeaders off;` this directive tell to pagespeed to no rewrite cache-control headers. And yes, some images got rewrited by pagespeed and some not. These images not rewrited have the `<!--4xx status code, preventing rewriting of` in the debug comments and you can see the diff in headers, you can see etag, cache-control, x-pagespeed.... are different, seems like these images are untouched by pagespeed, like if they are not in the location and then go to the apache. I found that storeviewgreek.png and espa.png images have different headers, the 1st have a last-modified that the 2nd don´t have, so seems are served from different sites or locations, despite they are from pub/media/wysiwyg/ folder. As I can see, al images (and other files) are served under /pub folder, as a try, can you set this: ``` pagespeed LoadFromFile "https://subdomain.example.com/pub/" "/var/www/vhosts/subdomain.example.com/httpdocs/pub/"; pagespeed LoadFromFileRuleMatch disallow .*; pagespeed LoadFromFileRuleMatch allow \.png$; pagespeed LoadFromFileRuleMatch allow \.jpg$; pagespeed LoadFromFileRuleMatch allow \.jpeg$; ``` This makes that files under /pub/ web folder are loaded from disk /var/www/vhosts/subdomain.example.com/httpdocs/pub/ but only files with the png, jpg or jpeg are loaded, any other file extension are loaded by the regular fecht. If the files with these extensions is no here you get a message in message history that the original file can´t be found. P.D. you need to disable all font types you serve from your domain, like woff2 or ttf, and ico files too. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org