Commit 8bae5e19 authored by jaubourg's avatar jaubourg

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

parent f9f034db
...@@ -3,6 +3,8 @@ var ...@@ -3,6 +3,8 @@ var
ajaxLocParts, ajaxLocParts,
ajaxLocation, ajaxLocation,
antiCacheValue = jQuery.now(),
rhash = /#.*$/, rhash = /#.*$/,
rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
// #7653, #8125, #8152: local protocol detection // #7653, #8125, #8152: local protocol detection
...@@ -618,7 +620,7 @@ jQuery.extend({ ...@@ -618,7 +620,7 @@ jQuery.extend({
// Add anti-cache in url if needed // Add anti-cache in url if needed
if ( s.cache === false ) { if ( s.cache === false ) {
var ts = jQuery.now(), var ts = antiCacheValue++,
// try replacing _= if it is there // try replacing _= if it is there
ret = s.url.replace( rts, "$1_=" + ts ); ret = s.url.replace( rts, "$1_=" + ts );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment