Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FACEBOOK LIKE (URLs. Serve these resources from a consistent URL)

I want to fix this issue ... I get the following error or waring in the speed performance

The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 25.2KiB.

http://static.ak.facebook.com/connect/xd_arbiter.php?version=10
https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=10

I have tried a number of with this below and still getting the same warnings

js.src = "https://connect.facebook.net/en_GB/all.js#xfbml=1";

js.src = "http://connect.facebook.net/en_GB/all.js#xfbml=1";

js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";

like image 867
Wayne Bromiley Avatar asked Nov 12 '22 23:11

Wayne Bromiley


1 Answers

This is an action of the Content delivery network used by Facebook. They decide where to serve you the content from. You have no control over where it comes from.

If you REALLY want to maintain a constant URL to a certain resource, you might want to try serving that file locally. Download it to your server and manually specify the URL.

like image 108
Lix Avatar answered Dec 19 '22 13:12

Lix