Hi,
I did search in this forum with the title and found no results.
Leverage browser caching:
http://basics.api.oneall.com/socialize/library.js (4 hours)
Is it possible to serve this script locally from my server? where is the control for its cache headers?
Here is the script :
function downloadJSAtOnload() {
var element = document.createElement("script");
element.src = "/public_html/wp-content/themes/tc_superads/js/library.js";
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
I just want to leverage the browser caching. How?
Regards
Ram