Leverage browser caching

Skip to first unread message

Asif Ghafoor

unread,
Jan 18, 2015, 12:05:19 PM1/18/15
to pagespeed-ins...@googlegroups.com
Hi,

I've been using pagespeed insights recently and one of the recommendations on your site doesn't make sense to me.
You mentioned "leverage browser caching" for a couple of external libraries we use (including google libs). As I ma sure you know, there is no way for me to manage the browser caching for external librarys. Whats the right thing to do here? I dont want to download the libs locally and manually add the caching header as that could be counterproductive.

This is us www.spacious.hk

Please let me know what you think.

A

Carlos Lizaga Anadon

unread,
Jan 19, 2015, 5:07:13 PM1/19/15
to pagespeed-ins...@googlegroups.com
If you don't want o can't do this then you will have to live with that score penalization.
Nothing else can be done.

Regards.

Rick Steinwand

unread,
Jan 20, 2015, 8:15:58 AM1/20/15
to pagespeed-ins...@googlegroups.com
Do what you can and leave the rest.

Looks like you have plenty of other things to work on (like images) that will improve your score.

Alice Wonder

unread,
Feb 24, 2015, 8:27:35 AM2/24/15
to pagespeed-ins...@googlegroups.com

Don't worry about what you can't control, only worry about what you can, and even then sometimes what PageSpeed suggests isn't relevant (e.g. telling me to minimize html - to save less than 1k)


Downloading libs locally so you can set a cache header may give you a better score but may slow your site down because even without a cache header, browsers will often still cache JavaScript - and with 3rd party hosts (such as code.google.com) there's a good chance visitors to your site already have it cached.

Worry about what makes sense to fix, not the stuff you have no control over.
Reply all
Reply to author
Forward
0 new messages