We are glad to welcome you to our Community Support Forums!
These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform.
The forums are run by the community and moderated by the OneAll team during office hours. Please stick to technical issues - and remember, no confidential information - these are public forums!

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

Answers

  • 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,
Sign in with your OneAll account to take part in the discussion.