Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serve resources from a consistent URL: facebook vs Google Pagespeed

There is a common problem on using Facebook like button or box, on using pagespeed online sevice by Google I get this : Serve resources from a consistent URL 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.3KiB. - http://static.ak.facebook.com/connect/xd_arbiter.php?version=7 - https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=7

it is obvious that one is for secured ssl connection and other is for unsecured connection is there any possible way to make facebook load just one?

like image 264
Abdelrahman Ellithy Avatar asked Jun 12 '12 15:06

Abdelrahman Ellithy


1 Answers

If you want Facebook to load just one, you need to serve the containing page over https.

Here's a demonstration:

Visit:

Facebook site with HTTP

You'll notice it shows Serve resources from a consistent URL for xd_arbiter, now visit:

Facebook site with HTTPS

You'll notice Facebook only loaded the https version as we served the page over https. I'm not sure if this is a Facebook issue. It may be worth filing a bug with Facebook, you'll at least get some useful feedback, (I tried to but couldn't find out where you can file bugs for these things, http://developers.facebook.com/bugs/ seems inappropriate)

Edit: Updating broken links, Facebook seems to have fixed the original issue and these links no longer show the problem that they used to highlight.

like image 138
Sam Giles Avatar answered Nov 06 '22 22:11

Sam Giles