Lofesa commented on issue #1659: Pagespeed Not optimising part of website images. URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1659#issuecomment-513572261 Ah! I see.... you have posted both, the send and the receive headers. From: Accept: image/webp,image/apng,image/*,*/*;q=0.8 until the last line are the headers that your browser send to the server, these headers don´t matter for the issue. Well, the non optimized headers don´t have any clue that tell pagespeed is working on it. You can see that optimized image have a caracterisc Etag (W/"0") and have the pagespeed header (X-Page-Speed: 1.13.35.2-0), so this make me think that the images non optimized don´t have pagespeed enabled, I can´t see where you have the pagespeed on, if you set it on the http block then is enabled for all the sites you have configured, if have in only in 1 site then only work on that site and if you have it on a location, then it work only for that location. In other hand, you have configured: ``` pagespeed LoadFromFile "https://example.com/media/" "/home/example/www/media/"; pagespeed LoadFromFile "https://example.com/js/" "/home/example/www/js/"; pagespeed LoadFromFile "https://example.com/skin/" "/home/example/www/skin/"; ``` why you don´t change this with: `pagespeed LoadFromFile "https://example.com/" "/home/example/www/";` and then include and exclude file patterns: ``` pagespeed LoadFromFileRuleMatch disallow .*; pagespeed LoadFromFileRuleMatch allow \.(ico|pdf|swf|eot|woff|woff2|ttf|otf|css|js|jpeg|jpg|png|gif|svg|svgz|mpg|mpeg|mp3|m4a|m4v|mp4|ogg|wmv|mov|mng|3gpp|3gp|webp|webm|flv|avi|asx|asf)(\?.*)?$; ``` The 1st rule disables all the files the the second enabes only the files w/ these extensions.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services