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

@ -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 );