From c9c1476fef538e4dc82716cf887b6fe878652851 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 25 Sep 2012 17:42:56 +0200 Subject: [PATCH] Fixed errors with banner-codes, that assume unaltered URL's jQuery by default appends a timestamp to every URL, that is called via jQuery.getScript(), to prevent caching. This alteration might confuse badly written third-party-ad-scripts, that assume an explicit format, when parsing URL's. --- openx.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openx.js b/openx.js index 579b16f..ce94f71 100644 --- a/openx.js +++ b/openx.js @@ -23,6 +23,14 @@ name, src = domain; + /** + * Without this option, jQuery appends an timestamp to every URL, that + * is fetched via $.getScript(). This can mess up badly written + * third-party-ad-scripts, that assume that the called URL's are not + * altered. + */ + $.ajaxSetup({ cache: true }); + document.write = document_write; document.writeln = document_write; -- 2.20.1