]> source.dussan.org Git - jquery.git/commitdiff
Uses an additive approach to generating anti-cache parameters rather than a timestamp...
authorjaubourg <j@ubourg.net>
Tue, 16 Oct 2012 20:08:13 +0000 (16:08 -0400)
committerjaubourg <j@ubourg.net>
Tue, 16 Oct 2012 20:08:13 +0000 (16:08 -0400)
src/ajax.js

index 3f71f8c6e7ed4bb69cb3dbcd77261bb15bc99695..6dff6176cd664ec5e347e6907950bceaf5458ede 100644 (file)
@@ -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 );