From: Kai Moritz Date: Tue, 25 Sep 2012 15:42:56 +0000 (+0200) Subject: Fixed errors with banner-codes, that assume unaltered URL's X-Git-Tag: 0.1.0~7 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=c9c1476fef538e4dc82716cf887b6fe878652851;p=openx 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. --- 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;