diff options
author | jaubourg <j@ubourg.net> | 2012-10-16 16:08:13 -0400 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-10-16 16:08:13 -0400 |
commit | 8bae5e19af30208a25ea357921f46845f6793951 (patch) | |
tree | 737a733c6aec99ef83f8863f8e0fbefbe82d8628 /src | |
parent | f9f034db6f411282e7a9ca921debf23b386f6010 (diff) | |
download | jquery-8bae5e19af30208a25ea357921f46845f6793951.tar.gz jquery-8bae5e19af30208a25ea357921f46845f6793951.zip |
Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |