Skip to content
Permalink
Browse files

Uses an additive approach to generating anti-cache parameters rather …

…than a timestamp. Fixes #12550
  • Loading branch information...
jaubourg committed Oct 16, 2012
1 parent f9f034d commit 8bae5e19af30208a25ea357921f46845f6793951
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 );

0 comments on commit 8bae5e1

Please sign in to comment.
You can’t perform that action at this time.