How to control cache of some js files ?

Hello, when I test the performances of my website I am having some errors like this :
cache.PNGWhat should I do ?
LVL 1
SniperCode ShevaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
None of those are yours so it is not clear what tests you are running and what you hope to accomplish.
The presumption by the analysis is that you have authorship rights of those ,js file, I believe all those .js file have a no-cache directive.
0
Shalom CarmelCTOCommented:
Hi

arnold is right - you do not have any control over these files, in fact they already come with their own cache control directives so a browser does cache them for the time specified in the report.
This file https://connect.facebook.com/fr_FR/fbds.js is already cached for 1200 seconds, like the report states. Maybe this report means that cache ttl can be longer, but it is out of your control anyway.

However, you can improve performance by using https in all references to these objects.  
http://connect.facebook.com/fr_FR/fbds.js  responds in a redirect to the same object but via a secure protocol, and using https upfront will improve the cumulative page load time by up to a second in some locations.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
You cannot control external resources. Facebook and Google are always fast to load.
Is the picture from gtmetrix.com ?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

SniperCode ShevaAuthor Commented:
Yes.
0
gheistCommented:
OK, my OCR works well. You cannot control external resources at all, what you see is that your page resources are configured well. Those are tracking scripts and sites providing them use those short expiry times. You cannot change that at all.
0
SniperCode ShevaAuthor Commented:
Ah, thank you.
Is GtMetrix the best way to know the performance of a website or do you have another website which can help me more ?
0
gheistCommented:
It points configuration issues just fine in easy to assess form. It is free compared to holding a machine across one ocean to meter user experience for one single site.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.