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 ...?


I did search in this forum with the title and found no results.
Leverage browser caching: (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";
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?


Best 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.

    Sign In or Register to comment.


    Please sign in to your OneAll account to take part in the discussions.

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