Fixed errors with banner-codes, that assume unaltered URL's
authorKai Moritz <kai@coolibri.de>
Tue, 25 Sep 2012 15:42:56 +0000 (17:42 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 27 Feb 2013 18:29:50 +0000 (19:29 +0100)
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

index 579b16f..ce94f71 100644 (file)
--- a/openx.js
+++ b/openx.js
     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;