Uses an additive approach to generating anti-cache parameters rather than a timestamp. Fixes #12550

This commit is contained in:
jaubourg 2012-10-16 16:08:13 -04:00
parent f9f034db6f
commit 8bae5e19af

View File

@ -3,6 +3,8 @@ var
ajaxLocParts,
ajaxLocation,
antiCacheValue = jQuery.now(),
rhash = /#.*$/,
rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
// #7653, #8125, #8152: local protocol detection
@ -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 );