PageSpeed Tools: Leverage browser caching Error
-
I’m getting these errors under the Leverage browser when testing my page with PageSpeed Tools
https://secure.gravatar.com/…66db78c62b15bda68b52a6c914?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…5468445dd328b20912737cfbca?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…27462714f7eaaf6a07068c9916?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…e95591a36aed841e90825e8253?s=80&d=mm&r=g (5 minutes)And I have no control over them – Is there a way to avoid them. I am thinking to host my own gravatar pics instead. Any ideeas?
-
-
-
@perfectbiotics42 it would seem those users have deleted their Gravatar accounts, which is why they don’t pull up and can’t be cached.
-
Not sure you understood what I mean.
So I have tested my page: https://www.hlbenefits.com/cla-safflower-oil-reviews/ against the google’s PageSpeed tool here: https://developers.google.com/speed/pagespeed/insights/ and noticed that I have a
Leverage browser caching for the following cacheable resources:
showing for those gravatar images:
https://secure.gravatar.com/avatar/18a5c566db78c62b15bda68b52a6c914?s=80&d=mm&r=g
https://secure.gravatar.com/avatar/212d415468445dd328b20912737cfbca?s=80&d=mm&r=g
https://secure.gravatar.com/avatar/34cb3227462714f7eaaf6a07068c9916?s=80&d=mm&r=g
https://secure.gravatar.com/avatar/3e1134e95591a36aed841e90825e8253?s=80&d=mm&r=gIf those images were on my host, I could solve this issue by adding the expires header caching but since they are hosted on gravatar’s servers I have no control. I’m asking for a solution to this issue.
-
-
Can you also confirm what the recommendation is? While I might not be able to get that updated for you, knowing what they’re asking for is a good start.
-
Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Leverage browser caching for the following cacheable resources:
https://secure.gravatar.com/…66db78c62b15bda68b52a6c914?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…5468445dd328b20912737cfbca?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…27462714f7eaaf6a07068c9916?s=80&d=mm&r=g (5 minutes)
https://secure.gravatar.com/…e95591a36aed841e90825e8253?s=80&d=mm&r=g (5 minutes)Not sure what is the recommended value, I guess it has to be as high as possible.
-
Not sure what is the recommended value, I guess it has to be as high as possible.
We like some caching (it’s better for our servers of course) but too much and people start to complain that their images aren’t updating when they want them updated. So I don’t know how much we can adjust that setting. The no-such-user gravatar have an odd expiration date on them. So I will check for you there. But I believe you can set a default local avatar to use instead in those cases. You might also try utilizing local caching for greater control.
- The topic ‘PageSpeed Tools: Leverage browser caching Error’ is closed to new replies.