From: jaubourg Date: Tue, 16 Oct 2012 20:08:13 +0000 (-0400) Subject: Uses an additive approach to generating anti-cache parameters rather than a timestamp... X-Git-Tag: 1.9.0b1~190 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8bae5e19af30208a25ea357921f46845f6793951;p=jquery.git Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550 --- diff --git a/src/ajax.js b/src/ajax.js index 3f71f8c6e..6dff6176c 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -2,6 +2,8 @@ var // Document location ajaxLocParts, ajaxLocation, + + antiCacheValue = jQuery.now(), rhash = /#.*$/, rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL @@ -618,7 +620,7 @@ jQuery.extend({ // Add anti-cache in url if needed if ( s.cache === false ) { - var ts = jQuery.now(), + var ts = antiCacheValue++, // try replacing _= if it is there ret = s.url.replace( rts, "$1_=" + ts );