× Joomla Facebook Connect support forum

Topic-icon Add Expires headers

Active Subscriptions:

None
15 years 1 month ago #9571 by fb_1013220675
Hi, when doing a check on Yslow and pagespeed, it says that i need to add expires headers to the images and scripts that comes from FBLconnect and facebook..how can i solve this?
here it is:
Add Expires headers
There are 6 static components without a far-future expiration date.
fonts.googleapis.com/css?family=Droid+Sans
connect.facebook.net/en_GB/all.js
profile.ak.fbcdn.net/hprofile-ak-snc4/18...969551_7817546_q.jpg
profile.ak.fbcdn.net/hprofile-ak-snc4/48...013220675_8669_q.jpg
profile.ak.fbcdn.net/hprofile-ak-snc4/41...1035083833_839_q.jpg
profile.ak.fbcdn.net/hprofile-ak-snc4/23...797039168_1933_q.jpg
The topic has been locked.
Support Specialist
15 years 1 month ago #9578 by alzander
Replied by alzander on topic Add Expires headers
An expires header is meant to say how often the browser should check for new images instead of just using what it has in the cache for the specified image. Since that's server dependent, there's nothing you can do about it. Those headers would have to be added by Facebook. They intentionally leave the expires header at a very short period so that the browser, for those files, checks frequently for updates. This is intended because it makes sure that their Javascript API running on the user's browser, or the avatars of the users that are displayed, are always up to date.

So, in short, there's nothing that can be done about those headers. However, I don't think those files should be the cause of any slowdown on your page.

Hope this helps!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9588 by fb_1013220675
Replied by fb_1013220675 on topic Add Expires headers
Thank you for answering, i basically know what headers are and it's included in my .httaccess for local files but i didn't know that it can't be placed on external...
i guess you are in the US, is the site loading fast enough?
The topic has been locked.
Support Specialist
15 years 1 month ago #9595 by alzander
Replied by alzander on topic Add Expires headers
Site loads fine for me. Not something I'd consider slow at all, actually.

And yes, we're based in Texas.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #9604 by fb_1013220675
Replied by fb_1013220675 on topic Add Expires headers
haha...let's agree that it is loading super fast and you are very excited :)
The topic has been locked.