• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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