Leverage browser caching ...?

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

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Answer ✓
    Hi Ram,

    no it's not possible to server the script from your server as it's generated dynamically.
    We have however already received a similar ticket and we are currently investigating.

    Regards,

    Welcome!

    Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

    Please click on the link below to connect to the forum with your OneAll account.