Community Forums › Forums › Archived Forums › General Discussion › Leveraging Browser Caching
Tagged: optimization
- This topic has 4 replies, 4 voices, and was last updated 9 years, 7 months ago by allieb.
-
AuthorPosts
-
December 5, 2014 at 8:46 pm #133768RachelandthecityParticipant
I am working on a new website for my mom who is a real estate agent.
It has a LOT if images. That's what she wants.
I am now trying to use Google Pagespeed Insights to try and optimize the site.
One of the recommendations is:
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:
http://d1qfrurkpai25r.cloudfront.net/graphical/css/leaflet.css (expiration not specified)
http://d1qfrurkpai25r.cloudfront.net/…/javascript/maps/plugins/leaflet.draw.js (expiration not specified)
http://d1qfrurkpai25r.cloudfront.net/graphical/javascript/jqwidx.js (expiration not specified)
http://d1qfrurkpai25r.cloudfront.net/graphical/javascript/leaflet.js (expiration not specified)etc...
I have installed a the WP fastest cache plugin - but I am unsure how to "Leverage browser caching for the following cacheable resources"
Can someone please advise?
http://kathyhurley.comDecember 6, 2014 at 8:03 am #133802Victor FontModeratorYou can't leverage browser caching for resources that aren't on your server. Browser caching is a function of the web server you're using (Apache, Nginx, etc.). Unless there's another way to do it of which I'm not aware, the web server config files have to be modified. You don't have access to these resources for third party resources.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 15, 2015 at 10:56 pm #140980alliebMemberI am also looking for a way to address Pingdom speed test results:
"The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources"
What is the best way to do this?
February 15, 2015 at 11:32 pm #140983coralseaitMember@Rachelandthecity, You're not going to be able to adjust those caching settings, as mentioned they are a function of the hosted scripts / code / resources. For things such as Google libraries, Boostrap, Font Awesome, Leaflet, etc - they're often hosted on extremely fast and highly available CDN repositories and they're purposely set for low cache validations so clients will always grab the latest versions. Nothing for you to fix really, unless you want to move the scripts / resources locally and cache; however, you'll have to update manually with every new release. Not worth it.
@allieb, What sort of hosting environment and caching (if any) are you using? That will dictate the best method to tune. Again, if their external libraries there's basically nothing to do.
February 15, 2015 at 11:52 pm #140986alliebMemberWordpress with the Studiopress Eleven40 theme, hosted with BlueHost, low-cost shared hosting.
Does that answer your question about hosting environment? Am not aware of any caching settings with this theme. Are there? -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.