Hi everyone,
I've been trying to get our new website to be performant and I've been using PageSpeed Insights to see where things go wrong and what could be improved.
We now have a score for mobile of 97/100, which is awesome, but I want to get the last issue as well. ;)
Problem is that I don't know how to get this fixed.
This is the issue:
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:
Keep in mind I'm not a server engineer or anything, but is it somehow possible to set an expiry date or maximum age on an external source? Or is there anything else I can do to get this issue solved?
Thanks in advance!
Mev-Rael
Executive Product Leader & Mentor for High-End Influencers and Brands @ mevrael.com
If a resource is not on on your server then you can't handle how the response should be generated and add own headers.
The only way you can go is downloading external files and serve them from your server. However, external resources may change and for that reason you coould just update each day/week these files from the original source.
You may also find some CDNs which do the same. If you wan't a maximum perfomance then serving all static content from CDN is a must.