From 8bae5e19af30208a25ea357921f46845f6793951 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Tue, 16 Oct 2012 16:08:13 -0400 Subject: [PATCH] Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550 --- src/ajax.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.5