PageSpeed giving ERR_CONNECTION_FAILED Only on production

与世无争的帅哥 提交于 2020-08-10 18:58:47

问题


We have our development page giving correct score on page speed insights.

https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fdev.techtitute.com

But our production page always returns scan error:

Lighthouse returned error: FAILED_DOCUMENT_REQUEST. Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: net::ERR_CONNECTION_FAILED)

https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fwww.techtitute.com

The strange thing is that web.dev (which also uses Lighthouse under the hoods) is giving correct score for both pages, also gtmetrix, pingdom and Chrome dev tools Lighthouse tab.

Both pages have the exact same code, both are running on windows Azure App Service. The only differences are:

On production we are injecting Google Tag Manager scripts with analytics, fb pixel, linkedin and others. Also we have an azure traffic manager to distribute traffic based on geolocalization of the user (Europe or Latam).

What would you think could be the problem of production page giving that error?

UPDATE 09/07/2020

We have created a parallel environment of traffic manager geographically distributed pointing to 2 app services with the same code as production, but with another domain: dev3.techtitute.com. Now page speed is giving the same error on this subdomain, as the production one. So we think it's related to azure traffic manager configuration.


回答1:


Finally we have solved the issue by changing traffic manager on Azure from Geographic Routing to Performance Routing.

Now page speed is giving normal scoring



来源:https://stackoverflow.com/questions/62801589/pagespeed-giving-err-connection-failed-only-on-production

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!