ioweb-gr edited a comment on issue #1897: URL: https://github.com/apache/incubator-pagespeed-mod/issues/1897#issuecomment-963066407
>This last directive cover all others. OK I'm sticking with just this then >You need to clear the pagespeed cahe I cleared the cache from purge cache in pagespeed admin.  > This can explain the 404, pagespeed is unable to connect because is refused. Take a look, the request is made as http not https Maybe you need to set: pagespeed RespectXForwardedProto on; I've just enabled this option ``` Version: 14: on Filters gp Convert Gif to Png jp Convert Jpeg to Progressive jw Convert Jpeg To Webp pj Convert Png to Jpeg wa Convert animated images to WebP ws When converting images to WebP, prefer lossless conversions hw Flushes html js Jpeg Subsampling rj Recompress Jpeg rp Recompress Png rw Recompress Webp cp Strip Image Color Profiles md Strip Image Meta Data Options AdminPath (nap) /pagespeed_admin AvoidRenamingIntrospectiveJavascript (aris) True BeaconUrl (bu) /ngx_pagespeed_beacon ConsolePath (ncp) /pagespeed_console EnableCachePurge (euci) True EnableRewriting (e) 1 FetchHttps (fhs) enable,allow_self_signed FileCacheCleanIntervalMs (afcci) 3600000 FileCacheInodeLimit (afcl) 500000 FileCachePath (afcp) /var/ngx_pagespeed_cache FileCacheSizeKb (afc) 204800 GlobalAdminPath (ngap) /pagespeed_global_admin GlobalStatisticsPath (ngsp) /ngx_pagespeed_global_statistics LogDir (ald) /var/log/ngx_pagespeed LRUCacheByteLimit (alcb) 16384 LRUCacheKbPerProcess (alcp) 8192 MessagesPath (nmp) /ngx_pagespeed_message RespectXForwardedProto (rxfp) True RewriteLevel (l) Pass Through SslCertDirectory (assld) /etc/ssl/certs Statistics (ase) True StatisticsLogging (asle) True StatisticsPath (nsp) /ngx_pagespeed_statistics Domain Lawyer http*://*.example.com/ Auth Invalidation Timestamp: Mon, 08 Nov 2021 11:34:39 GMT (1636371279251) ``` > Is your domain folder under some folder like http,3A or under https,3A? If under http,3A, optimized resources are stored herem but you are requesting a optimized resource under https,3A and the resource is not here, so 404.... Yes they are and indeed I can see some webp files there `ll /var/ngx_pagespeed_cache/v3/example.com/https,3A/,2Fsubdomain.example.com/pub/media/` ``` catalog/ favicon/ icons/ porto/ rackets_adults_bg_eng.png, rackets_kids_bg_eng.png, revslider/ shoes_bg.png, shoes_running_bg_eng.png, shoes_tennis_bg_eng.png, wysiwyg/ xrackets_adults_bg_eng.png.pagespeed.ic.1hFd9psVc_.webp, xrackets_adults_bg_eng.png.pagespeed.ic.wrorOf4Pul.jpg, xrackets_kids_bg_eng.png.pagespeed.ic.45BNnmwr_f.png, xrackets_kids_bg_eng.png.pagespeed.ic.xabPGK8I2V.webp, xshoes_bg.png.pagespeed.ic.KR4WNpIxi0.jpg, xshoes_bg.png.pagespeed.ic.PqTyvlBx84.webp, xshoes_running_bg_eng.png.pagespeed.ic.eU8V0SXHN9.jpg, xshoes_running_bg_eng.png.pagespeed.ic.sEHw6g3I87.webp, xshoes_tennis_bg_eng.png.pagespeed.ic.elCjgJ61XN.webp, xshoes_tennis_bg_eng.png.pagespeed.ic.oIjD0NVeCW.png, xxshoes_running_bg_eng.png,2CMic.sEHw6g3I87.webp.pagespeed.ic.lMgFnzIr9n.webp, ``` But nope they're not getting served as webp. I no longer see the error for http though -- 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