• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue extension Google PageSpeed Insights issue

JTRipper

Regular Pleskian
Hello,

using this extension in the domain page we got the link:

Download optimized image, JavaScript, and CSS resources for this page.

which points to: https://developers.google.com/speed/pagespeed/insights/optimizeContents?url=http://DOMAIN.TLD&strategy=desktop

but clicking it we got error from Google API:

The referrer https://OURPLESKSERVERNAME:8443/modules/pagespeed-insights/index.php/index/result?dom_id=5&site_id=5 does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.

I swapped urls for privacy reasons.

Do we need to active Google API key for this ?
How to add it in Plesk ?

Thanks in advance.
Jack
 
Last edited:
Not sure about this, but you can always simply go to PageSpeed Insights, test your URL from there and get the same advice plus explanations. Image, JS and CSS optimization are well explained in the Google help pages, too. However, don't let Google fool you into some JavaScript and CSS optimizations that lead to nowhere. Some of the advice given might enhance the user experience but in fact prolongate the actual file download time. It is not always good, e.g. to combine all .css or .js files in a single file.
 
Has anyone found a way to make this work with the Plesk extension. I'm well aware we can go direct but then why bother creating and this extension...
 
Back
Top