Search code examples
google-chromenginxhttpspagespeedwebp

pagespeed convert image to webp but use not secure protocol (http)


Chrome Mixed Content Message

My site was enabled nginx pagespeed module and all resources are loaded in https but webp url ( created by pagespeed ) is in http. I got a not-secure notice from Chrome brower. How to fix it?

Mixed Content: The page at 'https://interview.tw/c/QHkN' was loaded over HTTPS, but requested an insecure image 'http://assets.interview.tw/images/xmask.jpg.pagespeed.ic.yjlu3AxgW4.webp'. This content should also be served over HTTPS.

Solution

  • I found out that ModPagespeedFetchHttps enable fix this problem.

    So put it on your pagespeed.conf file, clean the pagespeed cache (sudo touch /var/cache/mod_pagespeed/cache.flush) and restart Apache.

    Good luck.