MyBB Community Forums

Full Version: Leverage browser caching - High Priority according to Google PageSpeed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When using PageSpeed from google
https://developers.google.com/speed/pagespeed/
Page speed states that I should do the following especially because
it says it's a High Priority:
"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."

I see many of my images, css files, and javascript have a 4 hour "freshness lifetime". How may I extend this as well as add an age to items where an expiration is not specified such as badges and scripts like:
http://shield.sitelock.com/shield/
https://apis.google.com/js/plusone.js (perhaps this shouldn't be changed)
http://cdn.viglink.com/api/vglnk.js (perhaps this shouldn't be changed)
http://ecx.images-amazon.com/.../amzn_de...728x90.gif
http://pagead2.googlesyndication.com/pagead/osd.js


Thanks a BILLION for any help! <3

Edit:
I used cloudflare, it does the trick.